Skip to content

Commit 752fc35

Browse files
committed
chore: wip
1 parent efb6e86 commit 752fc35

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

fixtures/input/example-0001.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,4 +455,25 @@ export type DynamicRecord<K extends PropertyKey> = {
455455
: never
456456
}
457457

458+
// Comments variations
459+
/**
460+
* Regular expression patterns used throughout the module
461+
*/
462+
interface RegexPatterns {
463+
/** Import type declarations */
464+
readonly typeImport: RegExp
465+
/** Regular import declarations */
466+
readonly regularImport: RegExp
467+
/** Async function declarations */
468+
readonly asyncFunction: RegExp
469+
/** Generic type parameters */
470+
readonly functionOverload: RegExp
471+
/** Module declaration pattern */
472+
readonly moduleDeclaration: RegExp
473+
/**
474+
* Module augmentation pattern
475+
*/
476+
readonly moduleAugmentation: RegExp
477+
}
478+
458479
export default dts

fixtures/output/example-0001.d.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,25 @@ export declare type DynamicRecord<K extends PropertyKey> = {
174174
? Record<string, unknown>
175175
: never
176176
}
177+
/**
178+
* Regular expression patterns used throughout the module
179+
*/
180+
/** Import type declarations */
181+
/** Regular import declarations */
182+
/** Async function declarations */
183+
/** Generic type parameters */
184+
/** Module declaration pattern */
185+
/**
186+
* Module augmentation pattern
187+
*/
188+
declare interface RegexPatterns {
189+
readonly typeImport: RegExp
190+
readonly regularImport: RegExp
191+
readonly asyncFunction: RegExp
192+
readonly functionOverload: RegExp
193+
readonly moduleDeclaration: RegExp
194+
readonly moduleAugmentation: RegExp
195+
}
177196

178197
export { generate, dtsConfig }
179198
export type { DtsGenerationOption }

0 commit comments

Comments
 (0)