|
7 | 7 | Property 'type' is incompatible with index signature. |
8 | 8 | Type '{ name: string; }' is not assignable to type 'string'. |
9 | 9 | /checkErrors.d.ts(2,45): error TS1555: An import attributes property must have a string literal type annotation. |
10 | | -/checkErrors.d.ts(3,33): error TS1555: An import attributes property must have a string literal type annotation. |
| 10 | +/checkErrors.d.ts(3,37): error TS1555: An import attributes property must have a string literal type annotation. |
| 11 | +/checkErrors.d.ts(4,37): error TS1555: An import attributes property must have a string literal type annotation. |
| 12 | +/checkErrors.d.ts(5,33): error TS1555: An import attributes property must have a string literal type annotation. |
11 | 13 | /valid.d.ts(11,38): error TS1555: An import attributes property must have a string literal type annotation. |
12 | 14 |
|
13 | 15 |
|
|
41 | 43 | text.toUpperCase(); |
42 | 44 | data.version.toFixed(); |
43 | 45 |
|
44 | | -==== /checkErrors.d.ts (5 errors) ==== |
| 46 | +==== /checkErrors.d.ts (7 errors) ==== |
45 | 47 | declare module "*.numberValue" with { type: number } {} |
46 | 48 | ~~~~~~~~~~~~~~~~ |
47 | 49 | !!! error TS2322: Type '{ type: number; }' is not assignable to type 'ImportAttributes'. |
|
55 | 57 | !!! error TS2322: Property 'type' is incompatible with index signature. |
56 | 58 | !!! error TS2322: Type '{ name: string; }' is not assignable to type 'string'. |
57 | 59 | ~~~~~~~~~~~~~~~~ |
| 60 | +!!! error TS1555: An import attributes property must have a string literal type annotation. |
| 61 | + declare module "*.css" with { type: `css` } {} |
| 62 | + ~~~~~ |
| 63 | +!!! error TS1555: An import attributes property must have a string literal type annotation. |
| 64 | + declare module "*.css" with { type: `css${''}` } {} |
| 65 | + ~~~~~~~~~~ |
58 | 66 | !!! error TS1555: An import attributes property must have a string literal type annotation. |
59 | 67 | declare module "*" with { type: "md" | "markdown" } {} |
60 | 68 | ~~~~~~~~~~~~~~~~~ |
|
0 commit comments