Skip to content

Commit

Permalink
Merge pull request #126 from PermanentOrg/dependabot/npm_and_yarn/typ…
Browse files Browse the repository at this point in the history
…escript-4.9.5

Bump typescript from 4.5.4 to 4.9.5
  • Loading branch information
slifty authored Aug 9, 2023
2 parents 097b95d + 76999d8 commit 0659146
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
25 changes: 13 additions & 12 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"@tsconfig/esm": "^1.0.0",
"@tsconfig/node14": "^1.0.1",
"@types/jest": "^27.4.0",
"@types/node": "^16.18.40",
"@types/node-fetch": "^2.6.1",
"@typescript-eslint/eslint-plugin": "^5.10.0",
"@typescript-eslint/parser": "^5.10.0",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/generateEnumTypeguard.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This is a modified version of code written by StackOverflow user @jcalz
// https://stackoverflow.com/a/58278753/159522
export const generateEnumTypeguard = <GenericEnum>(genericEnum: GenericEnum) => (
export const generateEnumTypeguard = <GenericEnum extends object>(genericEnum: GenericEnum) => (
(value: unknown): value is GenericEnum[keyof GenericEnum] => {
const token = value as GenericEnum[keyof GenericEnum];
const validTokens = Object.values(genericEnum);
Expand Down

0 comments on commit 0659146

Please sign in to comment.