Skip to content

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

Filter by

3.6k results  (285 ms)

3.6k 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 -- ...

Summary Adds OmitOptional T type that removes all optional keys from an object type, returning only the required properties. Changes - source/omit-optional.d.ts: New type — maps over RequiredKeysOf ...

Add RemoveSuffix type that removes a specified suffix from the end of a string type, mirroring the existing RemovePrefix type. Closes #1433

This package imports from react at runtime, but react is currently only listed in devDependencies. With strict package managers such as pnpm, consumers can hit a runtime module resolution error when ink-gradient ...

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 ...

Summary Exposes two previously internal types from source/internal/characters.d.ts as part of the public API. Whitespace A union of all 26 Unicode whitespace characters (\t, \n, \r, , and more). Useful ...

This is an independent contribution and is not part of any organized competition or hackathon. Summary: Adds the built-in TypeScript NoInfer T utility type (TS 5.4+) to IsNullable and IsOptional types, ...

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, ...

Summary Exports internal types from type-fest/source/internal to make them publicly accessible. This fixes issue #676. Changes - Export FirstArrayElement from ./source/internal/array.d.ts - Export ...

Summary This PR adds TypeScript s built-in NoInfer utility type to type parameters that should not serve as inference sites, preventing unwanted type inference in generic function contexts. Changes ...