Installation
npm install --save @types/type-detect
Summary
This package contains type definitions for type-detect (https://github.com/chaijs/type-detect).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/type-detect/v0.
declare function type(val: any): string;
declare namespace type {
export class Library {
of(val: any): string;
define(type: string, test: RegExp): void;
define(type: string, test: (val: any) => boolean): void;
test(val: any, type: string): boolean;
}
}
export = type;
Additional Details
- Last updated: Tue, 12 Sep 2023 12:34:57 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Bart van der Schoor.