typed-assert
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -0,0 +0,0 @@ { |
@@ -97,3 +97,3 @@ "use strict"; | ||
} | ||
catch { } | ||
catch (_) { } | ||
} | ||
@@ -100,0 +100,0 @@ throw new TypeError(message); |
{ | ||
"name": "typed-assert", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "typesafe assertion library for TypeScript 3.7+", | ||
@@ -29,17 +29,17 @@ "main": "build/index.js", | ||
"devDependencies": { | ||
"@types/node": "^14.0.13", | ||
"@types/jest": "^26.0.0", | ||
"@typescript-eslint/eslint-plugin": "^3.2.0", | ||
"@typescript-eslint/parser": "^3.2.0", | ||
"@types/node": "^14.0.22", | ||
"@types/jest": "^26.0.4", | ||
"@typescript-eslint/eslint-plugin": "^3.6.0", | ||
"@typescript-eslint/parser": "^3.6.0", | ||
"eslint-config-prettier": "^6.11.0", | ||
"eslint-plugin-import": "^2.21.2", | ||
"eslint-plugin-prettier": "^3.1.3", | ||
"eslint": "^7.2.0", | ||
"jest": "^26.0.1", | ||
"eslint-plugin-import": "^2.22.0", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"eslint": "^7.4.0", | ||
"jest": "^26.1.0", | ||
"prettier": "^2.0.5", | ||
"ts-jest": "^26.1.0", | ||
"typedoc": "^0.17.7", | ||
"typescript": "^3.9.5", | ||
"ts-jest": "^26.1.2", | ||
"typedoc": "^0.17.8", | ||
"typescript": "^3.9.6", | ||
"typedoc-plugin-markdown": "^2.3.1" | ||
} | ||
} | ||
} |
@@ -127,3 +127,3 @@ # `typed-assert` | ||
.filter(t.check(t.isNumber)) | ||
.map(x => x % 0 ? x : null) | ||
.map(x => x % 2 === 0 ? x : null) // x: number | ||
.filter(t.check(t.isNotNull)); | ||
@@ -130,0 +130,0 @@ // t: number[] = [4, 2] |
@@ -170,3 +170,3 @@ const expectedToBe = (type: string): string => `expected to be ${type}`; | ||
return; | ||
} catch {} | ||
} catch (_) {} | ||
} | ||
@@ -173,0 +173,0 @@ throw new TypeError(message); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
244528