Closed Loskir closed 1 year 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
ctx.t
TranslationContext
Record<string, FluentValue>
{a: string}
ctx.t
acceptsTranslationContext
that is defined asRecord<string, FluentValue>
However, if you try to pass a narrower type (like{a: string}
), you get an error