UNPKG

payload-is

Version:

A comprehensive TypeScript/JavaScript type checking library providing functions to check data types, collections, primitives, and built-in objects

3 lines (2 loc) 170 B
export declare function isIterator(payload: unknown): payload is Iterator<any>; export declare function isAsyncIterator(payload: unknown): payload is AsyncIterator<any>;