type-plus
type-plus copied to clipboard
Version Packages (beta)
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
⚠️⚠️⚠️⚠️⚠️⚠️
main
is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, run changeset pre exit
on main
.
⚠️⚠️⚠️⚠️⚠️⚠️
Releases
[email protected]
Major Changes
- a27e32e4e: Update
IsSymbol
and variances - 3957e3193: Update
IsUnknown
andIsNotUnknown
. ReomoveUnknownType
andNotUnknownType
. - d677a793e: Remove
StrictBigintType
andNotStrictBigintType
- 9e51d0b09: Remove
NonUndefined
. UseExclude
instead. RemoveNonNull
. UseExclude
instead. - 25b5d31f1: Remove
Positive
,Negative
,NumericType
,NotNumericType
, - 7e2ab3925: Update
IsTuple
and variances. - 322a33df0: Update
IsString
and its variances.
Minor Changes
-
33c02089f: Update
IsFunction
,IsNotFunction
,IsStrictFunction
,IsNotStrictFunction
.Remove
FunctionType
,NotFunctionType
,StrictFunctionType
,NotStrictFunctionType
. -
4c991f199: Add
Assignable<A, B>
. DeprecatedCanAssign<A, B>
andStrictCanAssign<A, B>
. -
d8848947a: Add
$DefineInputOptions
and$DefineBranchOptions
. Add support of handing$any
,$unknown
,$never
forIsAny
.Add
$ResolveBranch
that fixes theunknown
passthrough issue.The types will be able to use in the form of
IsAny<T, { $then:..., $else:...}>
, hopefully.It's still not recommended to do so, but at least it will not produce weird results.
Will need to convert other types to support that and add tests for them.
-
4dc227a62: Update
IsObject
and variants
Patch Changes
- 973cc4a9f: Move source under
packages/type-plus
.