We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2f18b0 commit 35bff54Copy full SHA for 35bff54
fixtures/input/example-0001.ts
@@ -257,4 +257,9 @@ export type ComplexUnionIntersection =
257
metadata: Record<string, unknown>
258
}
259
260
+// 3. Mapped and Conditional Types
261
+export type ReadonlyDeep<T> = {
262
+ readonly [P in keyof T]: T[P] extends object ? ReadonlyDeep<T[P]> : T[P]
263
+}
264
+
265
export default dts
fixtures/output/example-0001.d.ts
@@ -107,6 +107,9 @@ export declare type ComplexUnionIntersection =
107
& {
108
109
110
+export declare type ReadonlyDeep<T> = {
111
112
113
114
export { generate, dtsConfig }
115
export type { DtsGenerationOption }
0 commit comments