Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Oct 28, 2024
1 parent efb6e86 commit 752fc35
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
21 changes: 21 additions & 0 deletions fixtures/input/example-0001.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
19 changes: 19 additions & 0 deletions fixtures/output/example-0001.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 752fc35

Please # to comment.