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

Line 3 reports `Type parameter 'T' has a circular constraint. (2313)` since TS 5.4 which can be fixed with `NoInfer` ``` import type {IfAny} from "type-fest"; function foo( arg: T...

https://devblogs.microsoft.com/typescript/announcing-typescript-5-4-beta/#the-noinfer-utility-type We should review our types and see if there are any that could take advantage of it. ## Upvote & Fund - We're using [Polar.sh](https://polar.sh/sindresorhus) so you can upvote...

enhancement
help wanted
good first issue

Minor suggestion for an enhancement - make the second argument to `RequireAllOrNone` optional: i.e: `RequireAllOrNone` would be functionally equivalent to `RequireAllOrNone` ## Upvote & Fund - We're using [Polar.sh](https://polar.sh/sindresorhus) so...

We should run `tsc` on all the test files. Basically, remove this: https://github.com/sindresorhus/type-fest/blob/14fb1925edef6968ace0133201981cf8dd7eb95f/tsconfig.json#L13-L15 And then fix the reported issues. ## Upvote & Fund - We're using [Polar.sh](https://polar.sh/sindresorhus) so you can...

help wanted

Reading through the [`ReadonlyDeep type`](https://github.com/sindresorhus/type-fest/blob/HEAD/source/readonly-deep.d.ts) and [`its tests`](https://github.com/sindresorhus/type-fest/blob/main/test-d/readonly-deep.ts), I can't tell if `ReadonlyDeep Map>()` would return a `Map` or a `ReadonlyDeep`. The tests just don't cover that sort of case....

help wanted

I think it's worth adding this as long as we clearly document its downsides. Initial attempt in https://github.com/sindresorhus/type-fest/pull/686 ## Upvote & Fund - We're using [Polar.sh](https://polar.sh/sindresorhus) so you can upvote...

help wanted
type addition

https://github.com/sindresorhus/type-fest/issues/774#issuecomment-1836541847 ## Upvote & Fund - We're using [Polar.sh](https://polar.sh/sindresorhus) so you can upvote and help fund this issue. - The funding will be given to active contributors. - Thank you...

help wanted
type addition

Source: https://github.com/sindresorhus/type-fest/blob/main/source/basic.d.ts 1. Why do we specify `?:` when the property might not exist due to `| undefined` 2. Please, provide a practical use case types: `JsonValue`, `JsonPrimitive`, `JsonObject`, `JsonArray`,...

# Short summary Given: `Type`: Any type Provide: Create a type based on the `ValueOf` of a deeply nested property. # Potential definition `type ValueOfDeep ` # Use case Selecting...

help wanted
type addition

Recently someone pushed [this commit](https://github.com/sindresorhus/got/commit/d3b972efaca28d8033468c7232a469e8cb034677) to Got with the following message: > Use `Merge` as it's stricter than the intersection operator I came here looking for an explanation on what...