Files
tsgo/testdata/baselines/reference/compiler/importAttributePlainStringAmbientModule.symbols

29 lines
1.1 KiB
Plaintext

//// [tests/cases/compiler/importAttributePlainStringAmbientModule.ts] ////
=== /types.d.ts ===
declare module "plainstring" with { type: "css" } {
>"plainstring" : Symbol("plainstring", Decl(types.d.ts, 0, 0))
>type : Symbol(type, Decl(types.d.ts, 0, 35))
export const value: "plain";
>value : Symbol(value, Decl(types.d.ts, 1, 16))
}
=== /index.ts ===
import { value as withoutAttributes } from "plainstring";
>value : Symbol(withoutAttributes, Decl(types.d.ts, 1, 16))
>withoutAttributes : Symbol(withoutAttributes, Decl(index.ts, 0, 8))
import { value as withAttributes } from "plainstring" with { type: "ignored" };
>value : Symbol(withoutAttributes, Decl(types.d.ts, 1, 16))
>withAttributes : Symbol(withAttributes, Decl(index.ts, 1, 8))
const first: "plain" = withoutAttributes;
>first : Symbol(first, Decl(index.ts, 3, 5))
>withoutAttributes : Symbol(withoutAttributes, Decl(index.ts, 0, 8))
const second: "plain" = withAttributes;
>second : Symbol(second, Decl(index.ts, 4, 5))
>withAttributes : Symbol(withAttributes, Decl(index.ts, 1, 8))