Skip to content

Commit

Permalink
fix: generate d.ts files for .js files
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm committed Mar 28, 2023
1 parent 497e1df commit e054c00
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/moody-carrots-call.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/site-kit': patch
---

fix: generate d.ts files for .js files
4 changes: 2 additions & 2 deletions packages/site-kit/src/lib/search/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ export { default as SearchResults } from './SearchResults.svelte';
export { init, inited, lookup, search } from './search.js';

/**
* @typedef {import('./types').Block} Block
* @typedef {import('./types.js').Block} Block
*/

/**
* @typedef {import('./types').Tree} Tree
* @typedef {import('./types.js').Tree} Tree
*/
8 changes: 7 additions & 1 deletion packages/site-kit/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{
"extends": "./.svelte-kit/tsconfig.json"
"extends": "./.svelte-kit/tsconfig.json",
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"strict": true,
"noEmit": true
}
}

0 comments on commit e054c00

Please sign in to comment.