You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
: // Identify tuples to avoid converting them to arrays inadvertently; special case `readonly [...never[]]`, as it emerges undesirably from recursive invocations of ReadonlyDeep below.
: // Identify tuples to avoid converting them to arrays inadvertently; special case `readonly [...never[]]`, as it emerges undesirably from recursive invocations of ReadonlyDeep below.
54
+
Textendsreadonly[]|readonly[...never[]]
55
+
? readonly[]
56
+
: Textendsreadonly[infer U, ...infer V]
57
+
? readonly[ReadonlyDeep<U>, ...ReadonlyDeep<V>]
58
+
: Textendsreadonly[...infer U, infer V]
59
+
? readonly[...ReadonlyDeep<U>,ReadonlyDeep<V>]
60
+
: TextendsReadonlyArray<infer ItemType>
61
+
? ReadonlyArray<ReadonlyDeep<ItemType>>
62
+
: Textendsobject
63
+
? ReadonlyObjectDeep<T>
64
+
: unknown;
63
65
64
66
/**
65
67
Same as `ReadonlyDeep`, but accepts only `ReadonlyMap`s as inputs. Internal helper for `ReadonlyDeep`.
0 commit comments