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
Copy file name to clipboardExpand all lines: source/partial-deep.d.ts
+38-10Lines changed: 38 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
importtype{BuiltIns}from'./internal';
2
2
3
3
/**
4
-
@see PartialDeep
4
+
@see{@link PartialDeep}
5
5
*/
6
6
exporttypePartialDeepOptions={
7
7
/**
@@ -10,6 +10,32 @@ export type PartialDeepOptions = {
10
10
@default false
11
11
*/
12
12
readonlyrecurseIntoArrays?: boolean;
13
+
14
+
/**
15
+
Allows `undefined` values in non-tuple arrays.
16
+
17
+
- When set to `true`, elements of non-tuple arrays can be `undefined`.
18
+
- When set to `false`, only explicitly defined elements are allowed in non-tuple arrays, ensuring stricter type checking.
19
+
20
+
@default true
21
+
22
+
@example
23
+
You can prevent `undefined` values in non-tuple arrays by passing `{recurseIntoArrays: true; allowUndefinedInNonTupleArrays: false}` as the second type argument:
0 commit comments