DefinitelyTyped/types/type-detect/type-detect-tests.ts
2018-01-23 10:46:47 -08:00

27 lines
330 B
TypeScript

import type = require('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());