From 905361570b12816d73d1ea87e30b90f67d0ea2b6 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 1 Dec 2022 17:33:34 +1100 Subject: [PATCH] chore(deps): update dependency typescript to v4.9.3 (#105) * chore(deps): update dependency typescript to v4.9.3 * chore(deps): update dependency typescript to v4.9.3 * attempt to fix * . Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Minh Cung Co-authored-by: Minh Cung --- package.json | 2 +- src/index.ts | 8 ++++---- yarn.lock | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index b264088..eef90c9 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "react-intl": "6.2.4", "ts-jest": "29.0.3", "tsup": "6.5.0", - "typescript": "4.8.4" + "typescript": "4.9.3" }, "dependencies": {}, "peerDependencies": { diff --git a/src/index.ts b/src/index.ts index 4fec464..d637b09 100644 --- a/src/index.ts +++ b/src/index.ts @@ -13,10 +13,10 @@ import { type IntlCache, type MessageDescriptor, createIntl, createIntlCache, In export type PseudoLocale = 'en-XA' | 'en-XB' export type PseudoFunc = (msg: string | MessageFormatElement[]) => MessageFormatElement[] -export type MessageIds = FormatjsIntl.Message extends { - ids: string -} - ? FormatjsIntl.Message['ids'] +export type MessageIds = FormatjsIntl.Message extends { ids: infer T } + ? T extends string + ? T + : string : string const ASCII = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' diff --git a/yarn.lock b/yarn.lock index 8813669..98615f6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3611,10 +3611,10 @@ type-fest@^0.21.3: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== -typescript@4.8.4: - version "4.8.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.4.tgz#c464abca159669597be5f96b8943500b238e60e6" - integrity sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ== +typescript@4.9.3: + version "4.9.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.3.tgz#3aea307c1746b8c384435d8ac36b8a2e580d85db" + integrity sha512-CIfGzTelbKNEnLpLdGFgdyKhG23CKdKgQPOBc+OUNrkJ2vr+KSzsSV5kq5iWhEQbok+quxgGzrAtGWCyU7tHnA== unbox-primitive@^1.0.2: version "1.0.2"