# @total-typescript/ts-reset

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

Latest version **0.6.1** (published 2024-09-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install @total-typescript/ts-reset
pnpm add @total-typescript/ts-reset
yarn add @total-typescript/ts-reset
bun add @total-typescript/ts-reset
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.6.1 |
| Published | 2024-09-02 |
| First published | 2023-02-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 178.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8613 |
| Author | Matt Pocock |
| Maintainers | mpocock |

## Links

- npm: https://www.npmjs.com/package/@total-typescript/ts-reset
- Repository: https://github.com/total-typescript/ts-reset
- Homepage: https://totaltypescript.com/ts-reset
- Issues: https://github.com/total-typescript/ts-reset/issues
- npm.io page: https://npm.io/package/@total-typescript/ts-reset

## Recent versions

- 0.6.1 (latest) — 2024-09-02
- 0.6.0 — 2024-08-24
- 0.5.1 — 2023-08-17
- 0.5.0 — 2023-08-17
- 0.4.2 — 2023-03-08
- 0.4.1 — 2023-03-08
- 0.4.0 — 2023-03-08
- 0.3.7 — 2023-02-20
- 0.3.6 — 2023-02-20
- 0.3.5 — 2023-02-20
- 0.3.4 — 2023-02-20
- 0.3.3 — 2023-02-20
- 0.3.2 — 2023-02-19
- 0.3.1 — 2023-02-19
- 0.3.0 — 2023-02-19
- … 7 more at https://npm.io/package/@total-typescript/ts-reset/versions

## README

![TS Reset - Improved TypeScript's Built-in Typings](./og-image.png)

**Without `ts-reset`**:

- 🚨 `.json` (in `fetch`) and `JSON.parse` both return `any`
- 🤦 `.filter(Boolean)` doesn't behave how you expect
- 😡 `array.includes` often breaks on readonly arrays

`ts-reset` smooths over these hard edges, just like a CSS reset does in the browser.

**With `ts-reset`**:

- 👍 `.json` (in `fetch`) and `JSON.parse` both return `unknown`
- ✅ `.filter(Boolean)` behaves EXACTLY how you expect
- 🥹 `array.includes` is widened to be more ergonomic
- 🚀 And several more changes!

## Official Docs

Check out our docs page on [Total TypeScript](https://totaltypescript.com/ts-reset)

---
_Source: https://npm.io/package/@total-typescript/ts-reset · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
