Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Oct 27, 2024
1 parent c2f18b0 commit 35bff54
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fixtures/input/example-0001.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,4 +257,9 @@ export type ComplexUnionIntersection =
metadata: Record<string, unknown>
}

// 3. Mapped and Conditional Types
export type ReadonlyDeep<T> = {
readonly [P in keyof T]: T[P] extends object ? ReadonlyDeep<T[P]> : T[P]
}

export default dts
3 changes: 3 additions & 0 deletions fixtures/output/example-0001.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ export declare type ComplexUnionIntersection =
& {
metadata: Record<string, unknown>
}
export declare type ReadonlyDeep<T> = {
readonly [P in keyof T]: T[P] extends object ? ReadonlyDeep<T[P]> : T[P]
}

export { generate, dtsConfig }
export type { DtsGenerationOption }
Expand Down

0 comments on commit 35bff54

Please sign in to comment.