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) {
|
||||
return {
|
||||
CallExpression: function (node) {
|
||||
// @ts-expect-error It ain't typing properly
|
||||
const funcId = node.callee.property;
|
||||
if (!funcId || funcId.name !== "delete") return;
|
||||
// @ts-expect-error It ain't typing properly
|
||||
const tableExpr = node.callee.object;
|
||||
if (!tableExpr) return;
|
||||
const prismaExpr = tableExpr.object;
|
||||
|
||||
Reference in New Issue
Block a user