Skip to content

Commit

Permalink
fix(typescript): resolve ts4.8 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Aug 26, 2022
1 parent 1fb2dc5 commit 572c6de
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 42 deletions.
78 changes: 39 additions & 39 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -67,9 +67,9 @@
"prettier-plugin-jsdoc": "^0.3.38",
"qunit": "^2.19.1",
"timekeeper": "^2.2.0",
"typedoc": "^0.23.10",
"typedoc": "^0.23.11",
"typedoc-plugin-markdown": "^3.13.4",
"typescript": "^4.7.4",
"typescript": "^4.8.2",
"undici": "^5.9.1"
}
}
File renamed without changes.
2 changes: 1 addition & 1 deletion src/index.ts
Expand Up @@ -616,7 +616,7 @@ function normalizeTyp(value: string) {
return value.toLowerCase().replace(/^application\//, '')
}

function isJsonObject<T = JsonObject>(input: JsonValue): input is T {
function isJsonObject<T = JsonObject>(input: unknown): input is T {
if (input === null || typeof input !== 'object' || Array.isArray(input)) {
return false
}
Expand Down

0 comments on commit 572c6de

Please sign in to comment.