Skip to content

Commit 00b5d03

Browse files
authored
fix(types): keep type of options (#381)
1 parent 3c4b357 commit 00b5d03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import type { UserConfig, UserConfigFn } from './options'
33
/**
44
* Defines the configuration for tsdown.
55
*/
6-
export function defineConfig(
7-
options: UserConfig | UserConfigFn,
8-
): UserConfig | UserConfigFn {
6+
export function defineConfig<const T extends UserConfig | UserConfigFn>(
7+
options: T,
8+
): T {
99
return options
1010
}
1111

0 commit comments

Comments
 (0)