mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 21:21:31 +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";
|
|
} |