Add Required<T> to lib.d.ts

This commit is contained in:
Anders Hejlsberg
2018-02-13 06:47:52 -08:00
parent ebdd566c09
commit 2cc1d735ec

7
src/lib/es5.d.ts vendored
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
*/