1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-11 18:17:48 -05:00
denoland-deno/cli/tests/testdata/npm/file_dts_dmts_dcts/main.out
David Sherret 279030f2b8
fix(npm): improve declaration resolution for filename with different extensions (#19966)
postcss was importing `./index.js` from `./index.d.mts` where there also
existed a `./index.d.ts`.

Closes #19575
2023-07-28 11:24:22 -04:00

24 lines
708 B
Text

Download http://localhost:4545/npm/registry/@denotest/file-dts-dmts-dcts
Download http://localhost:4545/npm/registry/@denotest/file-dts-dmts-dcts/1.0.0.tgz
Check file:///[WILDCARD]/main.ts
error: TS2322 [ERROR]: Type '5' is not assignable to type '"dts"'.
const value1: Dts1 = 5;
~~~~~~
at file:///[WILDCARD]
TS2322 [ERROR]: Type '5' is not assignable to type '"mts"'.
const value2: Mts1 = 5;
~~~~~~
at file:///[WILDCARD]
TS2322 [ERROR]: Type '5' is not assignable to type '"mts"'.
const value3: Mts2 = 5;
~~~~~~
at file:///[WILDCARD]
TS2322 [ERROR]: Type '5' is not assignable to type '"cts"'.
const value4: Cts1 = 5;
~~~~~~
at file:///[WILDCARD]
Found 4 errors.