From 2cc1d735ec1bb725fce914d101b256108c530ad5 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Tue, 13 Feb 2018 06:47:52 -0800 Subject: [PATCH] Add Required to lib.d.ts --- src/lib/es5.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib/es5.d.ts b/src/lib/es5.d.ts index 0f773e78786..bab3bc67d38 100644 --- a/src/lib/es5.d.ts +++ b/src/lib/es5.d.ts @@ -1317,6 +1317,13 @@ type Partial = { [P in keyof T]?: T[P]; }; +/** + * Make all properties in T required + */ +type Required = { + [P in keyof T]-?: T[P]; +}; + /** * Make all properties in T readonly */