mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 03:01:48 +03:00
10 lines
149 B
TypeScript
10 lines
149 B
TypeScript
|
// @declaration: true
|
||
|
// @module: commonjs
|
||
|
|
||
|
interface I {
|
||
|
a: number;
|
||
|
}
|
||
|
|
||
|
export function f(x: any): x is I {
|
||
|
return typeof x.a === "number";
|
||
|
}
|