Files
DefinitelyTyped/types/type-detect/type-detect-tests.ts
2018-01-17 11:09:56 -08:00

27 lines
324 B
TypeScript

import type from 'type-detect';
// $ExpectType string
type(123);
// $ExpectType string
type('foo');
// $ExpectType string
type({});
// $ExpectType string
type([]);
// $ExpectType string
type(null);
// $ExpectType string
type(undefined);
// $ExpectType string
type(new Map());
// $ExpectType string
type(new Set());