Socket
Socket
Sign inDemoInstall

@total-typescript/ts-reset

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@total-typescript/ts-reset - npm Package Compare versions

Comparing version 0.1.4 to 0.2.0

dist/array-includes.d.ts

10

CHANGELOG.md
# @total-typescript/ts-reset
## 0.2.0
### Minor Changes
- e5a33c9: Added support for array.includes
### Patch Changes
- 8fe8e29: Improved filter-boolean to handle falsy values, not just NonNullable values
## 0.1.4

@@ -4,0 +14,0 @@

10

dist/filter-boolean.d.ts
interface Array<T> {
filter(predicate: BooleanConstructor, thisArg?: any): NonNullable<T>[];
filter(predicate: BooleanConstructor, thisArg?: any): TSReset.NonFalsy<T>[];
}
interface ReadonlyArray<T> {
filter(predicate: BooleanConstructor, thisArg?: any): TSReset.NonFalsy<T>[];
}
declare namespace TSReset {
type NonFalsy<T> = T extends false | 0 | "" | null | undefined ? never : T;
}

@@ -5,1 +5,2 @@ /// <reference path="fetch.d.ts" />

/// <reference path="json-parse.d.ts" />
/// <reference path="array-includes.d.ts" />

10

package.json
{
"name": "@total-typescript/ts-reset",
"version": "0.1.4",
"description": "",
"version": "0.2.0",
"description": "A CSS reset for TypeScript, improving types for common JavaScript API's",
"private": false,
"repository": "https://github.com/total-typescript/ts-reset",
"main": "./dist/recommended.js",

@@ -40,2 +41,7 @@ "module": "./dist/recommended.mjs",

"types": "./dist/fetch.d.ts"
},
"./array-includes": {
"default": "./dist/array-includes.js",
"import": "./dist/array-includes.mjs",
"types": "./dist/array-includes.d.ts"
}

@@ -42,0 +48,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc