@total-typescript/ts-reset
Advanced tools
Comparing version 0.1.4 to 0.2.0
# @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 @@ |
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" /> |
{ | ||
"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 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
0
216
10529
82