From e99c589c0b46c59ba9cb77842184e4ea6881f59e Mon Sep 17 00:00:00 2001 From: itwillwork Date: Wed, 13 Nov 2024 16:14:37 +0300 Subject: [PATCH] feat: fix return type for plural forms --- src/types.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/types.ts b/src/types.ts index f5e5100..0ff34c1 100644 --- a/src/types.ts +++ b/src/types.ts @@ -78,17 +78,17 @@ export type StrictTypedParamsI18NFn = { keysetName: K, key: G | NoEnumLikeStringLiteral, params?: StrictTypedParams, - ): S extends G ? T[K][G] : string; + ): string; keyset( keysetName: K, ): ( key: G | NoEnumLikeStringLiteral, params?: StrictTypedParams, - ) => S extends G ? T[K][G] : string; + ) => string; i18n( keysetName: K, key: G | NoEnumLikeStringLiteral, - ): () => S extends G ? T[K][G] : string; + ): () => string; has( keysetName: K, key: string @@ -99,25 +99,25 @@ export type StrictTypedParamsI18NFn = { keysetName: K, key: G | NoEnumLikeStringLiteral, params?: StrictTypedParams, - ) => S extends G ? T[K][G] : string; + ) => string; bind( thisArg: any, keysetName: K, ): ( key: G | NoEnumLikeStringLiteral, params?: StrictTypedParams, - ) => S extends G ? T[K][G] : string; + ) => string; bind( thisArg: any, keysetName: K, key: G | NoEnumLikeStringLiteral, - ): (params?: StrictTypedParams) => S extends G ? T[K][G] : string; + ): (params?: StrictTypedParams) => string; bind( thisArg: any, keysetName: K, key: G | NoEnumLikeStringLiteral, params?: StrictTypedParams, - ): () => S extends G ? T[K][G] : string; + ): () => string; }; export type Params = {[key: string]: any};