Skip to content

pullrequests Search Results · user:sindresorhus language:swift archived:false is:public language:TypeScript language:Swift

Filter by

53 results  (252 ms)

53 results

insindresorhus (press backspace or delete to remove)

!-- Thanks for submitting a pull request 🙌 If you re submitting a new type, please review the contribution guidelines: https://github.com/sindresorhus/type-fest/blob/main/.github/contributing.md -- ...

!-- Thanks for submitting a pull request 🙌 If you re submitting a new type, please review the contribution guidelines: https://github.com/sindresorhus/type-fest/blob/main/.github/contributing.md -- ...

Renames one or more keys in an object type while preserving each value type and the ? / readonly modifiers. Distributes over union object types. RenameKey is the single-key form; RenameKeys takes a map ...

The documented usage of TaggedUnion, type Tagged Fields extends Record string, unknown = TaggedUnion type , Fields ; failed to compile with: Type Fields does not satisfy the constraint Record string, ...

- fixed #1421 When the 2nd input param KeysType is clearly defined, keyof ObjectType can correctly constrain and suggest parameter options. However, when the input type is ambiguous due to generics, ...

Addresses #821. NonEmptyObject currently accepts {} for types whose only members are index signatures: import type {NonEmptyObject} from type-fest ; interface CommonArguments { [filter: string]: NonEmptyObject ...

Following up on #1294 and #1296, this PR introduces UnwrapRequired, a type that reverts the Required modifier on object types. UnwrapRequired mirrors UnwrapPartial’s implementation: - No-op for non-Required ...

Bug ConditionalPickDeep was incorrectly including keys whose value types are non-object unions (for example string | null) when the Condition is an enum. This PR fixes the issue in two ways: 1) Makes ...

Summary Addresses #848 by applying TypeScript 5.4 s NoInfer utility type where it genuinely improves inference behavior. Changes GetTagMetadata in source/tagged.d.ts Before: export type GetTagMetadata ...