Skip to content

Commit fd994e2

Browse files
committed
typechecking
1 parent 15154c8 commit fd994e2

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

packages/adapter-static/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ See https://kit.svelte.dev/docs/page-options#prerender for more details`
5252
}
5353

5454
const {
55+
// @ts-ignore
5556
pages = 'build',
5657
assets = pages,
5758
fallback,

packages/kit/src/core/sync/write_tsconfig.spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ test('Allows generated tsconfig to be mutated', () => {
6363
}
6464
});
6565

66+
// @ts-expect-error
6667
const config = get_tsconfig(kit, false);
6768

6869
assert.equal(config.extends, 'some/other/tsconfig.json');
@@ -80,6 +81,7 @@ test('Allows generated tsconfig to be replaced', () => {
8081
}
8182
});
8283

84+
// @ts-expect-error
8385
const config = get_tsconfig(kit, false);
8486

8587
assert.equal(config.extends, 'some/other/tsconfig.json');

packages/kit/src/exports/vite/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const options_regex = /(export\s+const\s+(prerender|csr|ssr|trailingSlash))\s*=/
7272
/** @type {Set<string>} */
7373
const warned = new Set();
7474

75-
/** @type {import('@sveltejs/vite-plugin-svelte').PreprocessorGroup} */
75+
/** @type {import('svelte/compiler').PreprocessorGroup} */
7676
const warning_preprocessor = {
7777
script: ({ content, filename }) => {
7878
if (!filename) return;

packages/kit/src/runtime/app/navigation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export const beforeNavigate = /* @__PURE__ */ client_method('before_navigate');
109109
* If a function (or a `Promise` that resolves to a function) is returned from the callback, it will be called once the DOM has updated.
110110
*
111111
* `onNavigate` must be called during a component initialization. It remains active as long as the component is mounted.
112-
* @type {(callback: (navigation: import('@sveltejs/kit').OnNavigate) => import('../../types/internal.js').MaybePromise<(() => void) | void>) => void}
112+
* @type {(callback: (navigation: import('@sveltejs/kit').OnNavigate) => import('types').MaybePromise<(() => void) | void>) => void}
113113
* @param {(navigation: import('@sveltejs/kit').OnNavigate) => void} callback
114114
* @returns {void}
115115
*/

0 commit comments

Comments
 (0)