TypeScript/tests/cases/compiler/declarationEmitInferredTypeAlias2.ts

16 lines
259 B
TypeScript

// @declaration: true
// @skipDefaultLibCheck: true
// @Filename: 0.ts
{
type Data = string | boolean;
let obj: Data = true;
}
export { }
// @Filename: 1.ts
let v = "str" || true;
function bar () {
return v;
}
export { v, bar }