mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
13 lines
378 B
TypeScript
13 lines
378 B
TypeScript
import stdin = require('stdin');
|
|
|
|
stdin(); // $ExpectError
|
|
stdin((num: number) => {}); // $ExpectError
|
|
|
|
stdin(() => {}); // $ExpectType void
|
|
stdin(str => {}); // $ExpectType void
|
|
stdin(str => undefined); // $ExpectType void
|
|
stdin(str => 1); // $ExpectType void
|
|
stdin(str => str); // $ExpectType void
|
|
stdin(str => []); // $ExpectType void
|
|
stdin(str => ({})); // $ExpectType void
|