diff --git a/fixtures/input/example-0001.ts b/fixtures/input/example-0001.ts index 4920b69..4893282 100644 --- a/fixtures/input/example-0001.ts +++ b/fixtures/input/example-0001.ts @@ -455,4 +455,25 @@ export type DynamicRecord<K extends PropertyKey> = { : never } +// Comments variations +/** + * Regular expression patterns used throughout the module + */ +interface RegexPatterns { + /** Import type declarations */ + readonly typeImport: RegExp + /** Regular import declarations */ + readonly regularImport: RegExp + /** Async function declarations */ + readonly asyncFunction: RegExp + /** Generic type parameters */ + readonly functionOverload: RegExp + /** Module declaration pattern */ + readonly moduleDeclaration: RegExp + /** + * Module augmentation pattern + */ + readonly moduleAugmentation: RegExp +} + export default dts diff --git a/fixtures/output/example-0001.d.ts b/fixtures/output/example-0001.d.ts index 5845097..8bfa392 100644 --- a/fixtures/output/example-0001.d.ts +++ b/fixtures/output/example-0001.d.ts @@ -174,6 +174,25 @@ export declare type DynamicRecord<K extends PropertyKey> = { ? Record<string, unknown> : never } +/** + * Regular expression patterns used throughout the module + */ + /** Import type declarations */ + /** Regular import declarations */ + /** Async function declarations */ + /** Generic type parameters */ + /** Module declaration pattern */ + /** + * Module augmentation pattern + */ +declare interface RegexPatterns { + readonly typeImport: RegExp + readonly regularImport: RegExp + readonly asyncFunction: RegExp + readonly functionOverload: RegExp + readonly moduleDeclaration: RegExp + readonly moduleAugmentation: RegExp +} export { generate, dtsConfig } export type { DtsGenerationOption }