Skip to content

Commit e650146

Browse files
larrifaxsom-sm
andauthored
SetRequiredDeep: Fix docs typo (#1121)
Co-authored-by: Som Shekhar Mukherjee <[email protected]>
1 parent 6846972 commit e650146

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/set-required-deep.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ type Foo = {
2525
}
2626
2727
type SomeRequiredDeep = SetRequiredDeep<Foo, 'a' | `c.${number}.d`>;
28-
// type SomeRequiredDeep = {
28+
//=> {
2929
// a: number; // Is now required
3030
// b?: string;
31-
// c: {
32-
// d: number // Is now required
33-
// }[]
31+
// c?: {
32+
// d: number; // Is now required
33+
// }[];
3434
// }
3535
3636
// Set specific indices in an array to be required.

0 commit comments

Comments
 (0)