Skip to content

Commit

Permalink
fix: add type overload for formatList, fix #1537
Browse files Browse the repository at this point in the history
  • Loading branch information
longlho authored and Long Ho committed Dec 10, 2019
1 parent ae3f492 commit 6629899
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ export interface IntlFormatters {
descriptor: MessageDescriptor,
values?: Record<string, PrimitiveType>
): React.ReactNode;
formatList(
values: Array<string>,
opts?: FormatListOptions
): string;
formatList(
values: Array<string | React.ReactNode>,
opts?: FormatListOptions
Expand Down

0 comments on commit 6629899

Please sign in to comment.