UNPKG

jet-validators

Version:

A list common typescript validator-functions and some useful utilities to go with them.

3 lines (2 loc) 225 B
export declare function orOptional<T>(cb: ((arg: unknown) => arg is T)): (arg: unknown) => arg is (T | undefined); export declare function orNullable<T>(cb: ((arg: unknown) => arg is T)): (arg: unknown) => arg is (T | null);