utility-types

Collection of utility types, complementing TypeScript built-in mapped types and aliases (think "lodash" for static types).

MIT License

Downloads
10.5M
Stars
5.4K
Committers
30

Bot releases are visible (Hide)

utility-types - v3.11.0 Latest Release

Published by piotrwitek 9 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/piotrwitek/utility-types/compare/v3.10.0...v3.11.0

utility-types -

Published by piotrwitek almost 5 years ago

Fixed

  • Removed undefined from keyof result of (Pick|Omit)ByValue(Exact) (#124)
utility-types -

Published by piotrwitek almost 5 years ago

New

  • Added new alias Falsy while deprecating Falsey (it's kept for backward compatibility) (#108)
  • Added UnionToIntersection type (#109)
  • Added Mutable type (#111)

Fixed

  • Make applying DeepReadonly idempotent (#107)
  • Added null | undefined to Primitive and isPrimitive (#116)
utility-types -

Published by piotrwitek about 5 years ago

New

  • Added new ValuesType (#99)
  • Added new Required<T, K> as the opposite of Optional<T, K> (#101)

Fixed

  • Updated FunctionKey and NonFunctionKeys (#95)
  • Added bigint to the Primitive type (#87)
utility-types -

Published by piotrwitek over 5 years ago

New

  • Added mixed type #81
  • Added Optional type #82
utility-types -

Published by piotrwitek over 5 years ago

Fixed

  • Fallback to previous Omit implementation as the new Omit from TS v3.5 is broken #80
utility-types -

Published by piotrwitek over 5 years ago

New

  • Added RequiredKeys and OptionalKeys #53
  • Added OmitByValue and PickByValue to the public API #50
  • Added OmitByValueExact and PickByValueExact #59
utility-types -

Published by piotrwitek over 5 years ago

  • added WritableKeys/ReadonlyKeys mapped types (#61)
  • added usage examples in JSDoc for each function (#68)
  • added Brand type (#67)
  • added Primitive and Falsey (#70)
utility-types -

Published by piotrwitek over 5 years ago

  • Added Class (#56)
  • Added DeepPartial (#60)
utility-types -

Published by piotrwitek almost 6 years ago

Added $NonMaybeType utility (#48)

utility-types -

Published by piotrwitek almost 6 years ago

Fixed function handling for Deep types
Updated internal test framework

utility-types -

Published by piotrwitek almost 6 years ago

Added DeepNonNullable
Added DeepRequired

  • Updated to [email protected]
  • Rewritten tests for types edge-cases with a new testing framework dts-jest
  • Internal refactoring and project workflow updates
  • Resolved #39
  • Resolved #42
utility-types -

Published by piotrwitek almost 6 years ago

Added $Shape utility (#44)

utility-types - Support for TypeScript 2.8

Published by piotrwitek over 6 years ago

Added Support for TypeScript 2.8

Resolved #15
Resolved #14
Resolved #16

Added new types:

  • SetIntersection
  • FunctionKeys
  • NonFunctionKeys
  • Intersection
  • UnboxPromise
  • DeepReadonly

Updated docs and examples!

utility-types - Support for TypeScript 2.7

Published by piotrwitek over 6 years ago

Added support for [email protected]

utility-types -

Published by piotrwitek over 6 years ago

Released first production-ready version
All API's are documented in README.md