grammyjs / i18n

Internationalization for grammY powered by Fluent.
https://grammy.dev/plugins/i18n
MIT License
31 stars 6 forks source link

Narrow interfaces are not assignable to TranslationContext #28

Closed Loskir closed 1 year ago

Loskir commented 2 years ago

ctx.t accepts TranslationContext that is defined as Record<string, FluentValue> However, if you try to pass a narrower type (like {a: string}), you get an error