fix: typescript for lint

This commit is contained in:
DecDuck
2025-11-21 23:07:50 +11:00
parent 650a3ca98d
commit 2d165bf997

View File

@ -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;