From 752fc351e3d940735846ad33da79414466d68a5f Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 28 Oct 2024 16:08:29 +0100 Subject: [PATCH] chore: wip --- fixtures/input/example-0001.ts | 21 +++++++++++++++++++++ fixtures/output/example-0001.d.ts | 19 +++++++++++++++++++ 2 files changed, 40 insertions(+) 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 = { : 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 = { ? Record : 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 }