mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
27 lines
330 B
TypeScript
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());
|
|
|