Skip to content

Commit e5fe2ca

Browse files
committed
style: format
1 parent 3e1fc63 commit e5fe2ca

4 files changed

Lines changed: 6 additions & 14 deletions

File tree

packages/css/src/options.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff 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

157156
export type PostCSSOptions =
158-
| string
159-
| (Record<string, any> & { plugins?: any[] })
157+
string | (Record<string, any> & { plugins?: any[] })
160158

161159
export interface PreprocessorOptions {
162160
scss?: SassPreprocessorOptions
@@ -167,8 +165,7 @@ export interface PreprocessorOptions {
167165
}
168166

169167
export type PreprocessorAdditionalDataResult =
170-
| string
171-
| { content: string; map?: any }
168+
string | { content: string; map?: any }
172169

173170
export type PreprocessorAdditionalData =
174171
| string

packages/exe/src/platform.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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

3027
export interface ExeExtensionOptions {

src/config/types.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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).

src/features/copy.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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
}
3635
export type CopyOptions = Arrayable<string | CopyEntry>
3736
export type CopyOptionsFn = (options: ResolvedConfig) => Awaitable<CopyOptions>

0 commit comments

Comments
 (0)