Skip to content

Commit

Permalink
wip(community): fix tsc
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoMcA committed Sep 23, 2024
1 parent 9275d81 commit d8e590a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ssr/react-app.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@ declare module "*.svg" {
export default src;
}

// once https://github.com/microsoft/TypeScript/issues/46135 is fixed
// we'll be able to do something like:
// declare module '*' with {type: 'css'} {
declare module "*?css" {
const sheet: CSSStyleSheet;
export default sheet;
}

declare module "*.module.css" {
const classes: { readonly [key: string]: string };
export default classes;
Expand Down

0 comments on commit d8e590a

Please sign in to comment.