Hacker GitHub

← All repos

sindresorhus/type-fest

View on GitHub ↗ ★ 17,487 TypeScript

A collection of essential TypeScript types

14 mentions on Hacker News by 13 people: 2 stories, 12 comments · first 2019-12-19 · latest 2025-10-26

Mentions per year 14 mentions · busiest year 2024 (6)
20082026
  1. ▲ 3
    Type-fest – A collection of essential TypeScript types
    story by macote · 2025-10-26 · 0 comments
  2. …https://github.com/sindresorhus/p-cancelable https://github.com/sindresorhus/responselike https://github.com/sindresorhus/type-fest https://github.com/sindresorhus/tagged-tag https://github.com/max-mapper/extract-zip…
  3. …the type of their values. Couldn't find a proper example on the spot in an open source project. [1] https://github.com/sindresorhus/type-fest/blob/main/source/g...
  4. ▲ 1
    A collection of essential TypeScript types
    story by trekhleb · 2024-11-30 · 0 comments
  5. …for more on what a complete branded type offers https://news.ycombinator.com/item?id=40368052 [0] https://github.com/sindresorhus/type-fest/blob/main/source/o... [1] https://www.typescriptlang.org/play/?#code/C4TwDgpgBAEghgZwB...
    comment by kaoD · 2024-05-15 · in Branded types for TypeScript
  6. …getAdminId()) // you cannot super-ban admins, even though they're also users! [0] https://github.com/sindresorhus/type-fest/blob/main/source/o... [1] https://www.typescriptlang.org/play/?#code/CYUwxgNghgTiAEYD2...
    comment by kaoD · 2024-05-15 · in Branded types for TypeScript
  7. I believe type-fest supports this, previously as “Opaque” types: https://github.com/sindresorhus/type-fest/blob/main/source/o...
    comment by sleazy_b · 2024-05-15 · in Branded types for TypeScript
  8. …an (IMO) easier definition, you can check how JSON values are usually defined in TypeScript e.g. https://github.com/sindresorhus/type-fest/blob/main/source/b...
  9. Related: https://github.com/sindresorhus/type-fest/blob/main/source/o...
    comment by jakubmazanec · 2024-01-30 · in Adding type safety to object IDs in TypeScript
  10. …to frequently for practical ideas. 0: https://github.com/microsoft/TypeScript/issues/14833 1: https://github.com/sindresorhus/type-fest
  11. …you can end up in situations where nobody even _really_ understands why some crazy type works. [0]: https://github.com/sindresorhus/type-fest/blob/2f418dbbb6182...
    comment by jasonkillian · 2022-06-27 · in Extreme explorations of TypeScript's type system
  12. I know you're entirely right, but sometimes when I see things like this in Typescript... https://github.com/sindresorhus/type-fest/blob/main/source/r... I can walk through it with enough pause, but it kinda makes my head implode when I…
  13. …a helpful tool to think about when you are struggling with type safety vs runtime data. 1: https://github.com/sindresorhus/type-fest
    comment by drinchev · 2021-02-02 · in Bad TypeScript Habits
  14. …from coworkers. Another commenter already linked to the official docs, I always link them to https://github.com/sindresorhus/type-fest#readme which has links and docs of the built in types and can be installed for more.