Skip to content

Commit

Permalink
Improve the doc comment for the Except type (#191)
Browse files Browse the repository at this point in the history
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
  • Loading branch information
Felix Hungenberg and sindresorhus committed Mar 20, 2021
1 parent 089a9a5 commit 8bd5d27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/except.d.ts
Expand Up @@ -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
```
Expand Down

0 comments on commit 8bd5d27

Please sign in to comment.