Skip to content

Commit

Permalink
Fix tsconfig for Preact JSX & move ambient types to env.d.ts (witha…
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis authored Nov 29, 2022
1 parent fd59296 commit 93bc770
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="astro/client" />
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"outDir": "./dist",
"declarationDir": "./dist/types",
"types": ["vite/client"]
"jsx": "react-jsx",
"jsxImportSource": "preact"
},
"include": ["scripts/**/*"]
}

0 comments on commit 93bc770

Please sign in to comment.