ember-intl
Version:
Internationalization for Ember projects
19 lines • 731 B
TypeScript
import Helper from '@ember/component/helper';
import type IntlService from '../services/intl.ts';
type FormatParameters = Parameters<IntlService['formatDateRange']>;
type From = FormatParameters[0];
type To = FormatParameters[1];
type Options = FormatParameters[2];
interface FormatDateRangeSignature {
Args: {
Named?: Options;
Positional: [From, To];
};
Return: string;
}
export default class FormatDateRangeHelper extends Helper<FormatDateRangeSignature> {
intl: IntlService;
compute([from, to]: FormatDateRangeSignature['Args']['Positional'], options: FormatDateRangeSignature['Args']['Named']): FormatDateRangeSignature['Return'];
}
export {};
//# sourceMappingURL=format-date-range.d.ts.map