Skip to content
This repository was archived by the owner on May 4, 2020. It is now read-only.

Commit 9b4516c

Browse files
author
Long Ho
committed
fix(intl-messageformat): add FormatXMLElementFn generic return type
1 parent db3154a commit 9b4516c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/intl-messageformat/src/formatters.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,6 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
285285
return mergeLiteral(result);
286286
}
287287

288-
export type FormatXMLElementFn<T> = (
288+
export type FormatXMLElementFn<T, R = string | Array<string | T>> = (
289289
...args: Array<string | T>
290-
) => string | Array<string | T>;
290+
) => R;

0 commit comments

Comments
 (0)