Skip to content

Commit 4f09533

Browse files
committed
chore: wip
chore: wip chore: wip chore: wip chore: wip
1 parent e3db319 commit 4f09533

File tree

3 files changed

+147
-70
lines changed

3 files changed

+147
-70
lines changed

fixtures/input/example-0001.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -394,15 +394,15 @@ export type ProductId = number & {
394394
// }
395395
// }
396396

397-
// TODO: Module Augmentation
398-
// declare module '@stacksjs/dtsx' {
399-
// interface DtsGenerationConfig {
400-
// customPlugins?: Array<{
401-
// name: string
402-
// transform: (code: string) => string
403-
// }>
404-
// }
405-
// }
397+
// Module Augmentation
398+
declare module '@stacksjs/some-module' {
399+
interface DtsGenerationConfig {
400+
customPlugins?: Array<{
401+
name: string
402+
transform: (code: string) => string
403+
}>
404+
}
405+
}
406406

407407
// Utility Type Implementations
408408
export type DeepPartial<T> = T extends object ? {

fixtures/output/example-0001.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,14 @@ export declare type UserId = string & { readonly __brand: unique symbol };
137137
export declare type ProductId = number & {
138138
readonly __brand: unique symbol
139139
}
140+
declare module '@stacksjs/some-module' {
141+
interface DtsGenerationConfig {
142+
customPlugins?: Array<{
143+
name: string
144+
transform: (code: string) => string
145+
}>
146+
}
147+
}
140148
export declare type DeepPartial<T> = T extends object ? {
141149
[P in keyof T]?: DeepPartial<T[P]>
142150
} : T

0 commit comments

Comments
 (0)