Add Required<T> to lib.d.ts

This commit is contained in:
Anders Hejlsberg committed 2018-02-13 06:47:52 -08:00
1 parent ebdd566c09
commit 2cc1d735ec
1 file changed
+7
+7
View File
@@ -1317,6 +1317,13 @@ type Partial<T> = {
[P in keyof T]?: T[P];
};
/**
* Make all properties in T required
*/
type Required<T> = {
[P in keyof T]-?: T[P];
};
/**
* Make all properties in T readonly
*/