From 18764563ac99c248ff1b5cd27e99ce240a1851cb Mon Sep 17 00:00:00 2001 From: itwillwork Date: Wed, 13 Nov 2024 16:38:58 +0300 Subject: [PATCH] feat: rename --- src/types.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/types.ts b/src/types.ts index bf885bc..30df382 100644 --- a/src/types.ts +++ b/src/types.ts @@ -63,7 +63,7 @@ type RequiredPluralValue = { count: number | string; // "string" parsed via Number constructor } -export type StrictTypedParams = ( +export type TypedParams = ( K extends StringKey ? Record, V> : ( @@ -73,17 +73,17 @@ export type StrictTypedParams = { +export type TypedParamsI18NFn = { ( keysetName: K, key: G | NoEnumLikeStringLiteral, - params?: StrictTypedParams, + params?: TypedParams, ): string; keyset( keysetName: K, ): ( key: G | NoEnumLikeStringLiteral, - params?: StrictTypedParams, + params?: TypedParams, ) => string; i18n( keysetName: K, @@ -98,25 +98,25 @@ export type StrictTypedParamsI18NFn = { ): ( keysetName: K, key: G | NoEnumLikeStringLiteral, - params?: StrictTypedParams, + params?: TypedParams, ) => string; bind( thisArg: any, keysetName: K, ): ( key: G | NoEnumLikeStringLiteral, - params?: StrictTypedParams, + params?: TypedParams, ) => string; bind( thisArg: any, keysetName: K, key: G | NoEnumLikeStringLiteral, - ): (params?: StrictTypedParams) => string; + ): (params?: TypedParams) => string; bind( thisArg: any, keysetName: K, key: G | NoEnumLikeStringLiteral, - params?: StrictTypedParams, + params?: TypedParams, ): () => string; };