From 8bd5d27f976e21fec983c477f8e144a61ada68aa Mon Sep 17 00:00:00 2001 From: Felix Hungenberg Date: Sat, 20 Mar 2021 04:23:29 +0100 Subject: [PATCH] Improve the doc comment for the Except type (#191) Co-authored-by: Sindre Sorhus --- source/except.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/except.d.ts b/source/except.d.ts index 7dedbaa4a..871e661c0 100644 --- a/source/except.d.ts +++ b/source/except.d.ts @@ -3,7 +3,7 @@ Create a type from an object type without certain keys. This type is a stricter version of [`Omit`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-5.html#the-omit-helper-type). The `Omit` type does not restrict the omitted keys to be keys present on the given type, while `Except` does. The benefits of a stricter type are avoiding typos and allowing the compiler to pick up on rename refactors automatically. -Please upvote [this issue](https://github.com/microsoft/TypeScript/issues/30825) if you want to have the stricter version as a built-in in TypeScript. +This type was proposed to the TypeScript team, which declined it, saying they prefer that libraries implement stricter versions of the built-in types ([microsoft/TypeScript#30825](https://github.com/microsoft/TypeScript/issues/30825#issuecomment-523668235)). @example ```