mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-22 04:31:15 +10:00
fix: typescript for lint
This commit is contained in:
@ -15,8 +15,10 @@ export default {
|
|||||||
create(context) {
|
create(context) {
|
||||||
return {
|
return {
|
||||||
CallExpression: function (node) {
|
CallExpression: function (node) {
|
||||||
|
// @ts-expect-error It ain't typing properly
|
||||||
const funcId = node.callee.property;
|
const funcId = node.callee.property;
|
||||||
if (!funcId || funcId.name !== "delete") return;
|
if (!funcId || funcId.name !== "delete") return;
|
||||||
|
// @ts-expect-error It ain't typing properly
|
||||||
const tableExpr = node.callee.object;
|
const tableExpr = node.callee.object;
|
||||||
if (!tableExpr) return;
|
if (!tableExpr) return;
|
||||||
const prismaExpr = tableExpr.object;
|
const prismaExpr = tableExpr.object;
|
||||||
|
|||||||
Reference in New Issue
Block a user