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.
1 parent 3c4b357 commit 00b5d03Copy full SHA for 00b5d03
src/config.ts
@@ -3,9 +3,9 @@ import type { UserConfig, UserConfigFn } from './options'
3
/**
4
* Defines the configuration for tsdown.
5
*/
6
-export function defineConfig(
7
- options: UserConfig | UserConfigFn,
8
-): UserConfig | UserConfigFn {
+export function defineConfig<const T extends UserConfig | UserConfigFn>(
+ options: T,
+): T {
9
return options
10
}
11
0 commit comments