Typescript type utilities for typing better TypeScript types.
GPL-3.0 License
Bot releases are hidden (Show)
Published by cuppachino over 1 year ago
Full Changelog: https://github.com/cuppachino/type-space/compare/v1.13.1...v1.13.2
Published by cuppachino over 1 year ago
Published by cuppachino over 1 year ago
Constructor
type by @Cuppachino in https://github.com/Cuppachino/type-space/pull/19
Full Changelog: https://github.com/Cuppachino/type-space/compare/v1.12.0...v1.13.0
Published by cuppachino over 1 year ago
ExtractRequired
and ExtractOptional
types by @Cuppachino in https://github.com/Cuppachino/type-space/pull/17
push
, pop
, shift
, unshift
types by @Cuppachino in https://github.com/Cuppachino/type-space/pull/18
Full Changelog: https://github.com/Cuppachino/type-space/compare/v1.10.1...v1.12.0
Published by cuppachino almost 2 years ago
🐛 Minor bugfix
Full Changelog: https://github.com/Cuppachino/type-space/compare/v1.10.0...v1.10.1
Published by cuppachino almost 2 years ago
I'll be using PRs from now on.
Type | Tested | README |
---|---|---|
Stringifiable |
🎫 | ✅ |
Stringifiable
type by @Cuppachino in https://github.com/Cuppachino/type-space/pull/10
Full Changelog: https://github.com/Cuppachino/type-space/compare/v1.9.1...v1.10.0
Published by cuppachino almost 2 years ago
This release introduces:
Type | Tested | README |
---|---|---|
PickAll |
❌ | ✅ |
UnionLiteral |
❌ | ✅ |
UnionToIntersection |
❌ | ✅ |
The KeyOf
type now has an optional Otherwise
parameter (default: never
). Non-breaking change.
Full Changelog: https://github.com/Cuppachino/type-space/compare/v1.8.3...v1.9.1
Published by cuppachino almost 2 years ago
I forgot to bump the version in package.json
. The following releases are incorrectly versioned as 1.6.0
:
1.7.0
1.8.0
1.8.1
1.8.2
This release just bumps the version number correctly.
Published by cuppachino almost 2 years ago
This version just adds a description to the package.json
.
Published by cuppachino almost 2 years ago
⬆️ Dependency Update
Full Changelog: https://github.com/Cuppachino/type-space/compare/v1.8.0...v1.8.1
Published by cuppachino almost 2 years ago
This version adds another utility for "partializing" specific properties of a type. Combine
is also tested now in partial-some.test.ts
.
Type | Tested | README |
---|---|---|
PartialSome |
✅ | ✅ |
Combine |
✅ | ✅ |
Published by cuppachino almost 2 years ago
This version adds a new utility type similar to Simplify
that is potentially less destructive.
Type | Tested | README |
---|---|---|
Combine |
❌ | ✅ |
Published by cuppachino almost 2 years ago
Published by cuppachino almost 2 years ago
This release includes five new utilities, wow! ✨
Type | Tested | README |
---|---|---|
KeyOf |
✅ | ✅ |
Mutable |
❌ | ✅ |
PartitionKeys |
✅ | ✅ |
PartitionValues |
✅ | ✅ |
PartitionPick |
✅ | ✅ |
Notes: Mutable
doesn't have a test suite, and its recursive-ness might be separated into its own DeepMutable
type in the future.
Published by cuppachino almost 2 years ago
This version adds UnknownRecord
and MergeAll
types. Also, source comments are more consistent.
src/index.ts
Published by cuppachino almost 2 years ago
This version adds the ExtractSetMembers
generic type, its test suite, and its README entry.
These will the requirements for introducing types in the future. This only applies to intentional exports from the package entry point.
Type
- with comment documentation.Published by cuppachino almost 2 years ago
🐛 This fixes a bug where ExtractFunctions
would resolve to never
if T
was a class.
Published by cuppachino almost 2 years ago
🐛 This fixes a bug where ExtendsFunction
would resolve to never
if T
was readonly
, and updates dev dependencies.
Published by cuppachino almost 2 years ago
This version adds ExtendsFunction
and ExtractFunctions
types, tests, more documentation, and a cosmetic update to the README.
Published by cuppachino almost 2 years ago
This fixes a bug where IndexOf
would resolve to never
if T
was readonly
, tests Indices
and IndexOf
, and adds documentation for UnknownArray
.