Skip to content

Commit

Permalink
fix: typescript errors
Browse files Browse the repository at this point in the history
  • Loading branch information
urish committed May 12, 2024
1 parent 8541a3e commit cec85df
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/css-modules.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module '*.module.css' {
const classes: Record<string, string>;
export default classes;
}
3 changes: 2 additions & 1 deletion src/entry-client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@

import { mount, StartClient } from '@solidjs/start/client';

mount(() => <StartClient />, document.getElementById('app'));
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
mount(() => <StartClient />, document.getElementById('app')!);
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
"allowJs": true,
"strict": true,
"noEmit": true,
"types": ["vinxi/client"],
"types": ["vinxi/client", "vite/client"],
"isolatedModules": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"paths": {
"~/*": ["./src/*"]
}
Expand Down

0 comments on commit cec85df

Please sign in to comment.