ember-intl
Version:
Internationalization for Ember projects
18 lines (17 loc) • 587 B
TypeScript
import Helper from '@ember/component/helper';
import type IntlService from '../services/intl';
type FormatParameters = Parameters<IntlService['formatTime']>;
type Value = FormatParameters[0];
type Options = FormatParameters[1];
interface FormatTimeSignature {
Args: {
Named?: Options;
Positional: [Value];
};
Return: string;
}
export default class FormatTimeHelper extends Helper<FormatTimeSignature> {
intl: IntlService;
compute([value]: FormatTimeSignature['Args']['Positional'], options: FormatTimeSignature['Args']['Named']): string;
}
export {};