1.0.1 • Published 5 months ago

invalid-type v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

invalid-type

Inspired by https://github.com/microsoft/TypeScript/issues/28982 and https://github.com/microsoft/TypeScript/issues/23689. Defines an invalid<ErrorMessage> type that can be used to indicate that a value is invalid/will never have a value. Sometimes never is used for this purpose; see https://github.com/microsoft/TypeScript/issues/28982 for why that's an inadequate solution.