preferCreateGuardReplace with Flamework.createGuard<T>(). Ianitor check results allocate a table on every call; Flamework.createGuard returns a plain boolean at runtime with zero allocation.small-rules/no-ianitor-success-accessDisallow accessing `.success` on Ianitor check results when the full result object is not needed.
preferCreateGuardReplace with Flamework.createGuard<T>(). Ianitor check results allocate a table on every call; Flamework.createGuard returns a plain boolean at runtime with zero allocation.This rule does not accept options.
import { Ianitor } from "@packages/ianitor";const ids = { a: "a", b: "b" } as const;const validator = Ianitor.keyOf(ids);export function isX(value: unknown) { return validator(value).success;}import { Ianitor } from "@packages/ianitor";const ids = { a: "a", b: "b" } as const;const validator = Ianitor.keyOf(ids);