TypeScript/tests/baselines/reference/importClause_namespaceImport.types
Anders Hejlsberg a4f9bf0fce
Create type aliases for unresolved type symbols (#45976)
* Create type aliases for unresolved type symbols

* Accept new baselines

* Update fourslash tests

* Unresolved import aliases create tagged unresolved symbols

* Add comments

* Accept new baselines

* Add fourslash tests
2021-09-23 13:21:27 -07:00

53 lines
758 B
Plaintext

=== /a.ts ===
export class A { a!: string }
>A : A
>a : string
export class B { b!: number }
>B : B
>b : number
export type C<T> = T;
>C : T
export const Value = {};
>Value : {}
>{} : {}
=== /b.ts ===
import type * as types from './a';
>types : typeof types
types;
>types : typeof types
types.Value;
>types.Value : {}
>types : typeof types
>Value : {}
let v: types.Value;
>v : types.Value
>types : any
const a: types.A = {};
>a : types.A
>types : any
>{} : {}
const b: types.B = {};
>b : types.B
>types : any
>{} : {}
const c: types.C<string> = "";
>c : string
>types : any
>"" : ""
const d = { types };
>d : { types: typeof types; }
>{ types } : { types: typeof types; }
>types : typeof types