UNPKG

ember-intl

Version:

Internationalization for Ember projects

11 lines (8 loc) 300 B
import type { IntlShape } from '@formatjs/intl'; export type FormatListParameters = Parameters<IntlShape<string>['formatList']>; export function formatList( intlShape: IntlShape, ...[value, formatOptions]: FormatListParameters ): string { return intlShape.formatList(value, formatOptions); }