mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 02:29:04 +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";
|
|
} |