We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
defineConfig
1 parent d0248b3 commit 7c32a1dCopy full SHA for 7c32a1d
src/config.ts
@@ -3,9 +3,11 @@ import type { UserConfig, UserConfigFn } from './options'
3
/**
4
* Defines the configuration for tsdown.
5
*/
6
-export function defineConfig<const T extends UserConfig | UserConfigFn>(
7
- options: T,
8
-): T {
+export function defineConfig(options: UserConfig): UserConfig
+export function defineConfig(options: UserConfigFn): UserConfigFn
+export function defineConfig(
9
+ options: UserConfig | UserConfigFn,
10
+): UserConfig | UserConfigFn {
11
return options
12
}
13
0 commit comments