localized-strings icon indicating copy to clipboard operation
localized-strings copied to clipboard

Incorrect `formatString` return type

Open cumpstey opened this issue 5 years ago • 0 comments

The formatString method is defined as:

    formatString<T extends Formatted>(
      str: string,
      ...values: Array<T | FormatObject<T>>
    ): Array<string | T> | string;

The return type should be just string. As far as I can tell, this doesn't require any changes to the actual method - just the .d.ts.

cumpstey avatar Jan 09 '20 11:01 cumpstey