mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
18 lines
207 B
TypeScript
18 lines
207 B
TypeScript
// $ExpectType Date
|
|
getDate();
|
|
|
|
// $ExpectType RegExp
|
|
getRegExp('.*');
|
|
|
|
// $ExpectError
|
|
new Date();
|
|
|
|
// $ExpectError
|
|
new RegExp('');
|
|
|
|
// $ExpectError
|
|
console.warn();
|
|
|
|
// $ExpectType number
|
|
Number.MAX_VALUE;
|