swc/crates/swc_ecma_parser/tests/tsc/declarationEmitIdentifierPredicatesWithPrivateName01.ts

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";
}