UNPKG

ts-type-guards

Version:

Curried TypeScript type guards for primitive types and classes

6 lines (5 loc) 212 B
export declare type primitive = boolean | number | string | symbol | null | undefined; export declare type Classy<T> = Function & { prototype: T; }; export declare type TypeGuard<T> = (x: unknown) => x is T;