Skip to contentSlop Block

no-reflect-calls

Error

Avoid Reflect.apply and Reflect.get.

const value = Reflect.get(owner, key);Replace this Reflect call with a direct call or property access
const result = Reflect.apply(operation, owner, args);Replace this Reflect call with a direct call or property access
// ast-grep-ignore: no-reflect-calls-typescript

How to fix

Reflect.apply and Reflect.get skip type checking. Use a typed call or property access, or parse the value at the boundary.