type-fest icon indicating copy to clipboard operation
type-fest copied to clipboard

A collection of essential TypeScript types

Results 242 type-fest issues
Sort by recently updated
recently updated
newest added

```ts import type {Get} from 'type-fest' interface A { } type abc = Get ``` The result of `abc` is `unknown`, is there a way to make it return `never`...

Facade objects often need to be constructed by pulling data from multiple asynchronous calls. It would be nice if there were a way to create an object that can contain...

I was trying to use `Jsonify` with a generic class and noticed things would break if I happened to pass in a type already using `JsonValue` or `JsonObject`: ```ts //...

bug
help wanted

When I define a React component as follows: ```tsx import {NonNegativeInteger} from "type-fest"; interface ReactComponent { trim?: NonNegativeInteger; } ``` And use it in the component: ```tsx ``` I get...

There are two self-identity bugs that can pretty simply be fixed: [TS Playground](https://www.typescriptlang.org/play?#code/PQgEGUAsHsHcGMCGBnAps0qBOXpY7JKgHagCuxAltFcQOah6iXEAu2a8rLDrRoyRAFtUoVgE8ADqgCwAKHkBveaDFTRASWQBRAI5lEAGwA8AQQA0oAEIA+UAF4Vq0AApjAcRsuAlA7vvMAA92YgATDFNQAH5QAEZQAC5QACZfVGCScKdVN08fP1AA9JDw62i4xJTvbPLWLDJZOWdKgDMjNABueSdFNWlMfXaHUC09AxNexCT4gF9QAB9QSenQGctlipm7GacwZoA9KO6mpb7RVEHDDHsRnUvjDdnQADJTqc310HfZ7d3gZtAh3kOwUcjAADFKIExPxFkg0EonBJ+qN7hZrHZHCcch4vL57P4giUIgtCuV4klUkTMsgark8QUihkwhgrKSAjEKVUajE6g0akk2ldUF1QapesjzpdrrcxkYHl8VnNFo9Vp9vqtfic9s4gWLTpKBuMZajxgqNXNXqq1m8lVrVDrVHqQfIIVCYaJXvDGsoTobTfL0bYHHTcfkCWTijTQJFXhyKpS0systjXGH8YSoyyynHyZVUjyxPVGs1Be0RcdxWcjUMbgGJorNqTreq7as-gC9T1qxdjcN6+alS9bR8Rz929r-gcjnIXWD-pDoXxPV8wqTvbS5L7VP67mag5jQ3kM5HkyTc4t41yqVmU816eHM2ec2TL3nE4W+SXnGXhaLu4ava1rK9zWs2jazK2mz2qAjqAjOAHqDWVz9nu8pgVaEFqmOmoTg6U66jOIJAA) Both of these evaluate to false: ```ts IsEqual IsEqual ``` The fix is to expand the check...

I think the `FixedLengthArray` is a great utility type, however to stick to the conventional naming of a fixed array being a "tuple", would you consider an alias of `FixedLengthArray`...

Since removing `Opaque`/`UnwrapOpaque` is obviously gonna require a new major version, I wanted to put this PR up now, in case it makes sense to land both changes in the...

fix #817 - Copied the array/tuple-logic from DelimiterCasedPropertiesDeep to fix CamelCasedPropertiesDeep to change tuple to array.

Maybe there's a simpler way to do this, but here's a function that will get the inverse of LastArrayElement: ```ts export type ArrayExceptLastElement = // If the last element of...

This PR may be premature, so I'm happy to let it sit for a bit. But, the basic idea is that: - Now that tag metadata has landed, `Tagged` types...