Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit b668a5e

Browse files
committed
Update types
1 parent 10239b5 commit b668a5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export async function loadConfig(specifier: string): Promise<Config> {
132132
}
133133
config.css = {
134134
cache,
135-
extract: util.isPlainObject(extract) && typeof extract.limit === 'number' ? extract : { limit: 8 * 1024 },
135+
extract: util.isPlainObject(extract) && typeof extract.limit === 'number' ? extract as any : { limit: 8 * 1024 },
136136
modules: util.isPlainObject(modules) ? modules : {},
137137
postcss: isPostcssConfig(postcss) ? postcss : { plugins: ['autoprefixer'] }
138138
}

types.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export type CSSOptions = {
190190
/** `cache` caches remote css to local if it is true. */
191191
cache?: boolean | RegExp | RegExp[]
192192
/** `extract` specifies the extract options (default is true with 8k limit). */
193-
extract?: { limit?: number }
193+
extract?: { limit: number }
194194
/** `postcss` specifies the postcss plugins. */
195195
postcss?: { plugins: PostCSSPlugin[] }
196196
/** `modules` specifies CSS modules behavior. */

0 commit comments

Comments
 (0)