mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
27 lines
675 B
TypeScript
27 lines
675 B
TypeScript
//// [tests/cases/conformance/declarationEmit/typePredicates/declarationEmitIdentifierPredicatesWithPrivateName01.ts] ////
|
|
|
|
//// [declarationEmitIdentifierPredicatesWithPrivateName01.ts]
|
|
interface I {
|
|
a: number;
|
|
}
|
|
|
|
export function f(x: any): x is I {
|
|
return typeof x.a === "number";
|
|
}
|
|
|
|
//// [declarationEmitIdentifierPredicatesWithPrivateName01.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.f = f;
|
|
function f(x) {
|
|
return typeof x.a === "number";
|
|
}
|
|
|
|
|
|
//// [declarationEmitIdentifierPredicatesWithPrivateName01.d.ts]
|
|
interface I {
|
|
a: number;
|
|
}
|
|
export declare function f(x: any): x is I;
|
|
export {};
|