GitShow/sindresorhus/type-fest
sindresorhus

type-fest

A collection of essential TypeScript types

by sindresorhus
npm-packagetypestypescripttypescript-definitionsutilities
Star on GitHubForknpm

TypeScript

17.4k stars730 forks220 contributorsActive · 5d agoSince 2019v5.8.0CC0-1.0

Meet the team

See all 220 on GitHub →
sindresorhus
sindresorhus367 contributions
som-sm
som-sm135 contributions
Emiyaaaaa
Emiyaaaaa62 contributions
skarab42
skarab4221 contributions
voxpelli
voxpelli12 contributions
trevorade
trevorade12 contributions
kainiedziela
kainiedziela9 contributions
tommy-mitchell
tommy-mitchell9 contributions

Languages

View on GitHub →
TypeScript85.2%
JavaScript14.8%

Commit activity

Last 12 weeks · 21 commits

Full graph →

Community health

5 of 6 standards met

Community profile →
100
✓README✓License✓Contributing✓Code of Conduct○Issue Template✓PR Template

Recent PRs & issues

Active · Last activity 5d ago
See all on GitHub →
bombillazo
Expose more internal typesOpenIssue

Hello, For use, the type is super convenient, yet we can only import it from the path. In Deno this causes some import issues so I was wondering if the library could export directly from the main project?

bombillazo · 9h ago
salisbury-espinosa
[bug]: IntRange for negative valuesOpenIssue

Bug description ===> Repro https://www.typescriptlang.org/play/?#code/JYWwDg9gTgLgBDAnmApnA3gSQHYwEoCG2A5igDRw4wDCANhAM4oAmhJKAvnAGZQQhwA5ElQBabigYxBAbgCwAKEWiAjHAYEYwBt2CTKuNqQA8ogEwUzAPnlKFq9Zu279VOoxZGUpi3GsygA

salisbury-espinosa · 12h ago
zfaustk
Add `AsyncFunction` typesOpenPR

Closes #121 This adds the three connected Basic function types from the final issue specification: for a reusable asynchronous signature; for an erased asynchronous function constraint; for an erased sync-or-async function constraint. The definitions follow the names, defaults, and edge-case decision discussed in #121. They live alongside the existing class and constructor types in , with README entries and examples. Tests cover generic arguments and return values, defaults, , rejection of synchronous functions by , acceptance of synchronous and asynchronous functions by , and a parameter. Validation: Codex assisted with checking the type edge cases, naming, documentation, examples, and test coverage against the upstream discussion and repository conventions.

zfaustk · 3d ago

Recent fixes

View closed PRs →
benzaria
feat: improve `UnionMax`, `UnionMin`, `ReverseSign`, `Negative`, `ToNumber` and add `ToBigint`, `SplitFloat` and `SeperateNegatives` internal typesMergedPR

Changes: add negative numbers support for and . add internal type to split a number union to . add support for . fix type returning for . rename and improve to include and similare to . add internal type to transforme supported types to . add internal type to use as a simple type at the moment.

benzaria · 9h ago
syu-toutousai
fix: NonEmptyObject should ignore index signatures when checking for required keysMergedPR

When has an index signature like , returns because it counts the index signature as a required key. This causes to pass through the type as-is even when no concrete keys are present. Using before checking for required keys ensures index signatures are excluded from the check. Before: After: The above correctly fails type checking. Fixes #821 PayPal: n6085530@gmail.com

syu-toutousai · 3d ago
rajanpanth
Fix dead Lodash docs link in readmeMergedPR

The entry links to , which returns 404 — lodash.com dropped the alias. is the live docs page and the anchor still resolves there. I checked every external link in the readme; this was the only broken one.

rajanpanth · 5d ago
Structured data for AI agents

Repository: sindresorhus/type-fest. Description: A collection of essential TypeScript types Stars: 17382, Forks: 730. Primary language: TypeScript. Languages: TypeScript (85.2%), JavaScript (14.8%). License: CC0-1.0. Topics: npm-package, types, typescript, typescript-definitions, utilities. Latest release: v5.8.0 (1mo ago). Open PRs: 47, open issues: 177. Last activity: 5d ago. Community health: 100%. Top contributors: sindresorhus, som-sm, Emiyaaaaa, skarab42, voxpelli, trevorade, kainiedziela, tommy-mitchell, privatenumber, taiyakihitotsu and others.

·@ofershap

Replace github.com with gitshow.dev