UNPKG

ember-intl

Version:

Internationalization for Ember projects

18 lines (17 loc) 553 B
import Helper from '@ember/component/helper'; import type IntlService from '../services/intl'; 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']): string; } export {};