mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
Add Required<T> to lib.d.ts
This commit is contained in:
7
src/lib/es5.d.ts
vendored
7
src/lib/es5.d.ts
vendored
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user