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
20082026
-
…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…
comment by CMay · 2025-09-20 · in Less is safer: Reducing the risk of supply chain attacks -
…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...
comment by foresterre · 2025-03-27 · in Good-bye core types; Hello Go as we know and love it -
…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 -
…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 -
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 -
…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...
comment by cprecioso · 2024-02-25 · in Documentation for the JSON Lines text file format -
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 -
…to frequently for practical ideas. 0: https://github.com/microsoft/TypeScript/issues/14833 1: https://github.com/sindresorhus/type-fest
comment by eyelidlessness · 2023-03-10 · in JavaScript and TypeScript features of the last 3 years -
…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 -
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…
comment by debaserab2 · 2021-11-04 · in TypeScript: Control flow analysis for destructured discriminated unions -
…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 -
…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.
comment by STRiDEX · 2019-12-19 · in GitHub Actions is my new favorite free programming tool [video]