Loading page…
Loading page…
Type-safe utilities and combinators for building isXXX guards in TypeScript. Lightweight and zero-dependency.
pnpm add is-kit
import { define } from 'is-kit';const isString = define<string>((x) => typeof x === 'string');if (isString('hello')) {// narrowed to string}
Author and compose predicates that refine types precisely.