diff --git a/package.json b/package.json index 7f37a8c..a307f6d 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "prettier": "^2.7.1", "time-grunt": "^2.0.0", "ts-jest": "^28.0.8", - "typescript": "^4.7.4", + "typescript": "^4.8.2", "yarn-audit-fix": "^9.3.5" }, "resolutions": { diff --git a/server/shared/types/index.ts b/server/shared/types/index.ts index 5fb3c06..80e17b1 100644 --- a/server/shared/types/index.ts +++ b/server/shared/types/index.ts @@ -144,7 +144,9 @@ export function toIsArray(isT: TypeGuard): TypeGuard { return (arg): arg is T[] => isArray(arg, isT); } -export function toIsEnum(enumDef: E): EnumTypeGuard { +export function toIsEnum>>( + enumDef: E +): EnumTypeGuard { return (arg): arg is ValueOf => Object.values(enumDef).includes(arg as [keyof E]); } diff --git a/yarn.lock b/yarn.lock index a6c7056..96f09ad 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7343,10 +7343,10 @@ type-is@~1.6.18: media-typer "0.3.0" mime-types "~2.1.24" -typescript@^4.7.4: - version "4.7.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.4.tgz#1a88596d1cf47d59507a1bcdfb5b9dfe4d488235" - integrity sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ== +typescript@^4.8.2: + version "4.8.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.2.tgz#e3b33d5ccfb5914e4eeab6699cf208adee3fd790" + integrity sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw== typical@^4.0.0: version "4.0.0"