Meta tweaks

This commit is contained in:
Sindre Sorhus 2020-01-30 00:38:17 +07:00
parent 446a7a081e
commit 5d0ccec21c
2 changed files with 18 additions and 18 deletions

View file

@ -51,12 +51,12 @@
"@types/jsdom": "^12.2.4", "@types/jsdom": "^12.2.4",
"@types/node": "^12.12.6", "@types/node": "^12.12.6",
"@types/zen-observable": "^0.8.0", "@types/zen-observable": "^0.8.0",
"@typescript-eslint/eslint-plugin": "^2.17.0", "@typescript-eslint/eslint-plugin": "^2.18.0",
"@typescript-eslint/parser": "^2.17.0", "@typescript-eslint/parser": "^2.18.0",
"ava": "^2.1.0", "ava": "^2.1.0",
"del-cli": "^2.0.0", "del-cli": "^2.0.0",
"eslint-config-xo-typescript": "^0.24.1", "eslint-config-xo-typescript": "^0.24.1",
"jsdom": "^15.0.0", "jsdom": "^16.0.1",
"rxjs": "^6.4.0", "rxjs": "^6.4.0",
"tempy": "^0.3.0", "tempy": "^0.3.0",
"ts-node": "^8.3.0", "ts-node": "^8.3.0",

View file

@ -534,11 +534,11 @@ async function goodNumberAssertion(input: unknown) {
return 2 * resolved; return 2 * resolved;
} }
badNumberAssumption(Promise.resolve("an unexpected string")); badNumberAssumption(Promise.resolve('An unexpected string'));
//=> 'NaN' //=> NaN
// This correctly throws an error because of the unexpected string value. // This correctly throws an error because of the unexpected string value.
goodNumberAssertion(Promise.resolve("an unexpected string")); goodNumberAssertion(Promise.resolve('An unexpected string'));
``` ```
## FAQ ## FAQ