To ensure a type is correct. Can be useful for testing.
We could use this type for it: https://github.com/sindresorhus/type-fest/blob/98158e0fcb354e36c8aaf4b6808ca1498156f1f4/source/internal.d.ts#L1-L11
Example:
// Type
isEqualType<ExpectedType, ActualType>();
// Value
isEqualType(expectedValue, actualValue);
// Mixed
isEqualType<ExpectedType>()(value);
Thoughts?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too