1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
=== /imports.ts ===
import { type, as, something, foo, bar } from "./exports.js";
>type : 0
>as : 0
>something : 0
>foo : 0
>bar : 0
type;
>type : 0
as; // Error (used in emitting position)
>as : 0
something; // Error (used in emitting position)
>something : 0
foo; // Error (used in emitting position)
>foo : 0
bar; // Error (used in emitting position)
>bar : 0
=== /exports.ts ===
const type = 0;
>type : 0
>0 : 0
const as = 0;
>as : 0
>0 : 0
const something = 0;
>something : 0
>0 : 0
export { type };
>type : 0
export { type as };
>as : 0
export { type something };
>something : 0
export { type type as foo };
>type : 0
>foo : 0
export { type as as bar };
>as : 0
>bar : 0
export type { type something as whatever }; // Error
>something : 0
>whatever : any
|