reflectApplyReplace `Reflect.apply` with a typed function call. Model dynamic dispatch behind a named interface.small-rules/no-reflect-applyDisallow Reflect.apply; call typed functions directly or model dynamic dispatch behind an interface.
Ported from dmmulroy/anti-slop. Reflect.apply bypasses
the function type that would normally document and check the call. Call the typed function directly. When
the callee or the argument list is only known at runtime, put that call behind a named interface.
reflectApplyReplace `Reflect.apply` with a typed function call. Model dynamic dispatch behind a named interface.This rule does not accept options.
const value = Reflect.apply(operation, owner, args);const value = operation.apply(owner, args);