Skip to content

Commit

Permalink
[fix] update types to match changes to Vite config handling (#3662)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored Feb 1, 2022
1 parent cc62c70 commit 0915768
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/rude-rockets-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

[fix] update types to match changes to Vite config handling
4 changes: 2 additions & 2 deletions packages/kit/types/config.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CompileOptions } from 'svelte/types/compiler/interfaces';
import { UserConfig as ViteConfig } from 'vite';
import { CspDirectives } from './csp';
import { RecursiveRequired } from './helper';
import { MaybePromise, RecursiveRequired } from './helper';
import { HttpMethod, Logger, RouteSegment, TrailingSlash } from './internal';

export interface RouteDefinition {
Expand Down Expand Up @@ -165,7 +165,7 @@ export interface Config {
};
target?: string;
trailingSlash?: TrailingSlash;
vite?: ViteConfig | (() => ViteConfig);
vite?: ViteConfig | (() => MaybePromise<ViteConfig>);
};
preprocess?: any;
}
Expand Down

0 comments on commit 0915768

Please sign in to comment.