Skip to content

Commit 0915768

Browse files
authored
[fix] update types to match changes to Vite config handling (#3662)
1 parent cc62c70 commit 0915768

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/rude-rockets-rescue.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/kit': patch
3+
---
4+
5+
[fix] update types to match changes to Vite config handling

packages/kit/types/config.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { CompileOptions } from 'svelte/types/compiler/interfaces';
22
import { UserConfig as ViteConfig } from 'vite';
33
import { CspDirectives } from './csp';
4-
import { RecursiveRequired } from './helper';
4+
import { MaybePromise, RecursiveRequired } from './helper';
55
import { HttpMethod, Logger, RouteSegment, TrailingSlash } from './internal';
66

77
export interface RouteDefinition {
@@ -165,7 +165,7 @@ export interface Config {
165165
};
166166
target?: string;
167167
trailingSlash?: TrailingSlash;
168-
vite?: ViteConfig | (() => ViteConfig);
168+
vite?: ViteConfig | (() => MaybePromise<ViteConfig>);
169169
};
170170
preprocess?: any;
171171
}

0 commit comments

Comments
 (0)