File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,8 +29,7 @@ export interface CSSModulesOptions {
2929 * When using `transformer: 'lightningcss'`, only string patterns are supported.
3030 */
3131 generateScopedName ?:
32- | string
33- | ( ( name : string , filename : string , css : string ) => string )
32+ string | ( ( name : string , filename : string , css : string ) => string )
3433
3534 /**
3635 * Prefix added to hashes when generating scoped names.
@@ -155,8 +154,7 @@ export interface CssOptions {
155154}
156155
157156export type PostCSSOptions =
158- | string
159- | ( Record < string , any > & { plugins ?: any [ ] } )
157+ string | ( Record < string , any > & { plugins ?: any [ ] } )
160158
161159export interface PreprocessorOptions {
162160 scss ?: SassPreprocessorOptions
@@ -167,8 +165,7 @@ export interface PreprocessorOptions {
167165}
168166
169167export type PreprocessorAdditionalDataResult =
170- | string
171- | { content : string ; map ?: any }
168+ string | { content : string ; map ?: any }
172169
173170export type PreprocessorAdditionalData =
174171 | string
Original file line number Diff line number Diff line change @@ -21,10 +21,7 @@ export interface ExeTarget {
2121 * support was added to Node.js SEA.
2222 */
2323 nodeVersion :
24- | ( string & { } )
25- | 'latest'
26- | 'latest-lts'
27- | `${string } .${string } .${string } `
24+ ( string & { } ) | 'latest' | 'latest-lts' | `${string } .${string } .${string } `
2825}
2926
3027export interface ExeExtensionOptions {
Original file line number Diff line number Diff line change @@ -623,8 +623,7 @@ export interface UserConfig {
623623 copy ?: CopyOptions | CopyOptionsFn
624624
625625 hooks ?:
626- | Partial < TsdownHooks >
627- | ( ( hooks : Hookable < TsdownHooks > ) => Awaitable < void > )
626+ Partial < TsdownHooks > | ( ( hooks : Hookable < TsdownHooks > ) => Awaitable < void > )
628627
629628 /**
630629 * **[experimental]** Bundle as executable using Node.js SEA (Single Executable Applications).
Original file line number Diff line number Diff line change @@ -30,8 +30,7 @@ export interface CopyEntry {
3030 * Change destination file or folder name.
3131 */
3232 rename ?:
33- | string
34- | ( ( name : string , extension : string , fullPath : string ) => string )
33+ string | ( ( name : string , extension : string , fullPath : string ) => string )
3534}
3635export type CopyOptions = Arrayable < string | CopyEntry >
3736export type CopyOptionsFn = ( options : ResolvedConfig ) => Awaitable < CopyOptions >
You can’t perform that action at this time.
0 commit comments