UNPKG

@xylabs/typeof

Version:

Base functionality used throughout XY Labs TypeScript/JavaScript libraries

8 lines 334 B
import type { TypeOfTypes } from './TypeOfTypes.ts'; /** * Extended typeof that distinguishes arrays from objects (unlike native `typeof`). * @param item - The value to check. * @returns The type of the item as a TypeOfTypes string. */ export declare const typeOf: <T>(item: T) => TypeOfTypes; //# sourceMappingURL=typeOf.d.ts.map