Product
Introducing Socket Optimize
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.
@total-typescript/ts-reset
Advanced tools
A CSS reset for TypeScript, improving types for common JavaScript API's
ts-reset
TypeScript's built-in typings are not perfect. ts-reset
makes them better.
Without ts-reset
:
.json
(in fetch
) and JSON.parse
both return any
.filter(Boolean)
doesn't behave how you expectarray.includes
often breaks on readonly arraysts-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 expectarray.includes
is widened to be more ergonomicCheck out our docs page on Total TypeScript
0.5.0
49b8603: Added a rule, /session
, to make sessionStorage and localStorage safer.
// Is now typed as `unknown`, not `any`!
localStorage.a;
// Is now typed as `unknown`, not `any`!
sessionStorage.abc;
49b8603: Added a /dom
entrypoint to allow users to import DOM-only rules.
FAQs
A CSS reset for TypeScript, improving types for common JavaScript API's
The npm package @total-typescript/ts-reset receives a total of 353,084 weekly downloads. As such, @total-typescript/ts-reset popularity was classified as popular.
We found that @total-typescript/ts-reset demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.
Product
We're excited to announce that Socket now supports the Java programming language.
Security News
Socket detected a malicious Python package impersonating a popular browser cookie library to steal passwords, screenshots, webcam images, and Discord tokens.