Skip to content

Commit 2cc1d73

Browse files
committed
Add Required<T> to lib.d.ts
1 parent ebdd566 commit 2cc1d73

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/lib/es5.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,6 +1317,13 @@ type Partial<T> = {
13171317
[P in keyof T]?: T[P];
13181318
};
13191319

1320+
/**
1321+
* Make all properties in T required
1322+
*/
1323+
type Required<T> = {
1324+
[P in keyof T]-?: T[P];
1325+
};
1326+
13201327
/**
13211328
* Make all properties in T readonly
13221329
*/

0 commit comments

Comments
 (0)