@@ -158,7 +158,7 @@ export interface TranslateOptions<Locales = Locale> {
158158 */
159159
160160export function translate <
161- Context extends CoreContext < Message , Context [ 'messages' ] , { } , { } > ,
161+ Context extends CoreContext < Message > ,
162162 Key extends string = string ,
163163 ResourceKeys extends PickupKeys < Context [ 'messages' ] > = PickupKeys <
164164 Context [ 'messages' ]
@@ -170,7 +170,7 @@ export function translate<
170170) : MessageType < Message > | number
171171
172172export function translate <
173- Context extends CoreContext < Message , Context [ 'messages' ] , { } , { } > ,
173+ Context extends CoreContext < Message , { } , { } , { } > ,
174174 Key extends string = string ,
175175 ResourceKeys extends PickupKeys < Context [ 'messages' ] > = PickupKeys <
176176 Context [ 'messages' ]
@@ -183,7 +183,7 @@ export function translate<
183183) : MessageType < Message > | number
184184
185185export function translate <
186- Context extends CoreContext < Message , Context [ 'messages' ] , { } , { } > ,
186+ Context extends CoreContext < Message , { } , { } , { } > ,
187187 Key extends string = string ,
188188 ResourceKeys extends PickupKeys < Context [ 'messages' ] > = PickupKeys <
189189 Context [ 'messages' ]
@@ -197,7 +197,7 @@ export function translate<
197197) : MessageType < Message > | number
198198
199199export function translate <
200- Context extends CoreContext < Message , Context [ 'messages' ] , { } , { } > ,
200+ Context extends CoreContext < Message , { } , { } , { } > ,
201201 Key extends string = string ,
202202 ResourceKeys extends PickupKeys < Context [ 'messages' ] > = PickupKeys <
203203 Context [ 'messages' ]
@@ -210,7 +210,7 @@ export function translate<
210210) : MessageType < Message > | number
211211
212212export function translate <
213- Context extends CoreContext < Message , Context [ 'messages' ] , { } , { } > ,
213+ Context extends CoreContext < Message , { } , { } , { } > ,
214214 Key extends string = string ,
215215 ResourceKeys extends PickupKeys < Context [ 'messages' ] > = PickupKeys <
216216 Context [ 'messages' ]
@@ -224,7 +224,7 @@ export function translate<
224224) : MessageType < Message > | number
225225
226226export function translate <
227- Context extends CoreContext < Message , Context [ 'messages' ] , { } , { } > ,
227+ Context extends CoreContext < Message , { } , { } , { } > ,
228228 Key extends string = string ,
229229 ResourceKeys extends PickupKeys < Context [ 'messages' ] > = PickupKeys <
230230 Context [ 'messages' ]
@@ -237,7 +237,7 @@ export function translate<
237237) : MessageType < Message > | number
238238
239239export function translate <
240- Context extends CoreContext < Message , Context [ 'messages' ] , { } , { } > ,
240+ Context extends CoreContext < Message , { } , { } , { } > ,
241241 Key extends string = string ,
242242 ResourceKeys extends PickupKeys < Context [ 'messages' ] > = PickupKeys <
243243 Context [ 'messages' ]
@@ -251,7 +251,7 @@ export function translate<
251251) : MessageType < Message > | number
252252
253253export function translate <
254- Context extends CoreContext < Message , Context [ 'messages' ] , { } , { } > ,
254+ Context extends CoreContext < Message , { } , { } , { } > ,
255255 Key extends string = string ,
256256 ResourceKeys extends PickupKeys < Context [ 'messages' ] > = PickupKeys <
257257 Context [ 'messages' ]
@@ -265,7 +265,7 @@ export function translate<
265265) : MessageType < Message > | number
266266
267267export function translate <
268- Context extends CoreContext < Message , Context [ 'messages' ] , { } , { } > ,
268+ Context extends CoreContext < Message , { } , { } , { } > ,
269269 Key extends string = string ,
270270 ResourceKeys extends PickupKeys < Context [ 'messages' ] > = PickupKeys <
271271 Context [ 'messages' ]
@@ -279,7 +279,7 @@ export function translate<
279279) : MessageType < Message > | number
280280
281281export function translate <
282- Context extends CoreContext < Message , Context [ 'messages' ] , { } , { } > ,
282+ Context extends CoreContext < Message , { } , { } , { } > ,
283283 Key extends string = string ,
284284 ResourceKeys extends PickupKeys < Context [ 'messages' ] > = PickupKeys <
285285 Context [ 'messages' ]
@@ -292,7 +292,7 @@ export function translate<
292292) : MessageType < Message > | number
293293
294294export function translate <
295- Context extends CoreContext < Message , Context [ 'messages' ] , { } , { } > ,
295+ Context extends CoreContext < Message , { } , { } , { } > ,
296296 Key extends string = string ,
297297 ResourceKeys extends PickupKeys < Context [ 'messages' ] > = PickupKeys <
298298 Context [ 'messages' ]
@@ -306,7 +306,7 @@ export function translate<
306306) : MessageType < Message > | number
307307
308308export function translate <
309- Context extends CoreContext < Message , Context [ 'messages' ] , { } , { } > ,
309+ Context extends CoreContext < Message , { } , { } , { } > ,
310310 Key extends string = string ,
311311 ResourceKeys extends PickupKeys < Context [ 'messages' ] > = PickupKeys <
312312 Context [ 'messages' ]
@@ -320,7 +320,7 @@ export function translate<
320320) : MessageType < Message > | number
321321
322322export function translate <
323- Context extends CoreContext < Message , Context [ 'messages' ] , { } , { } > ,
323+ Context extends CoreContext < Message , { } , { } , { } > ,
324324 Key extends string = string ,
325325 ResourceKeys extends PickupKeys < Context [ 'messages' ] > = PickupKeys <
326326 Context [ 'messages' ]
@@ -335,7 +335,7 @@ export function translate<
335335
336336// implementation of `translate` function
337337export function translate <
338- Context extends CoreContext < Message , Context [ 'messages' ] , { } , { } > ,
338+ Context extends CoreContext < Message , { } , { } , { } > ,
339339 Message = string
340340> ( context : Context , ...args : unknown [ ] ) : MessageType < Message > | number {
341341 const {
0 commit comments