Hacker GitHub

← All repos

mattpocock/ts-reset

View on GitHub ↗ ★ 8,639 TypeScript

A 'CSS reset' for TypeScript, improving types for common JavaScript API's

9 mentions on Hacker News by 8 people: 4 stories, 5 comments · first 2023-02-20 · latest 2024-01-31

Mentions per year 9 mentions · busiest year 2023 (8)
20082026
  1. you can improve it a bit with the library ts-reset https://github.com/total-typescript/ts-reset
  2. You might like TS Reset: https://github.com/total-typescript/ts-reset , which fixes this particular problem. I don't personally find it to be a big issue though. Regarding runtime type checking, if you were to write something that can…
    comment by kristiandupont · 2023-06-24 · in Why doesn't TypeScript properly type Object.keys?
  3. …I've suggested such info could be mentioned in the project [0] and author sees as "too niche". [0] https://github.com/total-typescript/ts-reset/issues/93
  4. …path="./ts-reset-0.3.7/src/entrypoints/recommended.d.ts"/> // = contents of the archive from // https://github.com/total-typescript/ts-reset/releases const allCurrencies = /** @type {const} */(["EUR", "USD"]); /** * @typedef {typeof…
  5. Reading https://github.com/total-typescript/ts-reset/blob/main/src/e... , I'm more confused than before. The generic NonFalsy<T>[] looks to me like it should evaluate to never[] if the entire array is false, and to T[] (the original array…