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