Skip to content

Commit 7e774ed

Browse files
docs: clarify support and snippets for standard import attribute types (#223)
1 parent 846b5de commit 7e774ed

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

src/pages/docs/resources/typescript.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ See our [reference docs on Greenwood's available types](/docs/reference/appendix
8181

8282
### Import Attributes
8383

84-
Currently TypeScript does not support types for standard [JSON and CSS Import Attributes](https://github.com/microsoft/TypeScript/issues/46135). You can use the below snippets as a reference for providing these types for your own project in the meantime.
84+
Currently TypeScript only supports types for standard [JSON Import Attributes](https://devblogs.microsoft.com/typescript/announcing-typescript-5-4/#checked-import-attributes-and-assertions) as of TypeScript 5.4. There is an [open issue tracking CSS Module Scripts support](https://github.com/microsoft/TypeScript/issues/46689), so in the meantime you can use the below snippet as a reference for providing this type for yourself in your own project.
8585

8686
<!-- prettier-ignore-start -->
8787

@@ -93,12 +93,6 @@ Currently TypeScript does not support types for standard [JSON and CSS Import At
9393

9494
export default sheet;
9595
}
96-
97-
declare module "*.json" {
98-
const data: object;
99-
100-
export default data;
101-
}
10296
```
10397

10498
</app-ctc-block>

0 commit comments

Comments
 (0)