From 706a734f25c53691b20330c489f5233556e09a6c Mon Sep 17 00:00:00 2001 From: Valeriy Sidorenko Date: Tue, 2 May 2023 19:25:43 +0200 Subject: [PATCH] feat(keyset): allow to narrow the type of keyset keys --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 8401dcf..47f6581 100644 --- a/src/index.ts +++ b/src/index.ts @@ -135,8 +135,8 @@ export class I18N { return result; } - keyset(keysetName: string) { - return (key: string, params?: Params): string => { + keyset(keysetName: string) { + return (key: TKey, params?: Params): string => { return this.i18n(keysetName, key, params); }; }