UNPKG

ember-intl

Version:

Internationalization for Ember projects

18 lines 601 B
import Helper from '@ember/component/helper'; import type IntlService from '../services/intl.ts'; type TParameters = Parameters<IntlService['t']>; type Key = TParameters[0]; type Options = TParameters[1]; interface TSignature { Args: { Named?: Options; Positional: [Key] | [Key, Options]; }; Return: string; } export default class THelper extends Helper<TSignature> { intl: IntlService; compute([key, positionalOptions]: TSignature['Args']['Positional'], namedOptions: TSignature['Args']['Named']): TSignature['Return']; } export {}; //# sourceMappingURL=t.d.ts.map