Skip to content

Commit f13bc1b

Browse files
committed
feat: export types
closes #382
1 parent 1d7f3ac commit f13bc1b

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,5 +335,6 @@ export type {
335335
UserConfig,
336336
UserConfigFn,
337337
} from './options'
338-
export type { BuildContext, TsdownHooks } from './features/hooks'
338+
export * from './options/types'
339+
export type { BuildContext, RolldownContext } from './features/hooks'
339340
export { logger }

src/options/types.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,17 @@ export type ModuleTypes = Record<
4343
| 'css'
4444
| 'asset'
4545
>
46+
export type {
47+
AttwOptions,
48+
ChunkAddon,
49+
CopyOptions,
50+
DtsOptions,
51+
ExportsOptions,
52+
PublintOptions,
53+
ReportOptions,
54+
TsdownHooks,
55+
UnusedOptions,
56+
}
4657

4758
export interface Workspace {
4859
/**

0 commit comments

Comments
 (0)