6 lines
191 B
TypeScript
6 lines
191 B
TypeScript
|
declare function isString(x: any): x is string;
|
||
|
declare function isNumber(x: any): x is number;
|
||
|
declare function f(p: typeof isString | typeof isNumber): void;
|
||
|
f(isString);
|
||
|
f(isNumber);
|