UNPKG

ember-intl

Version:

A internationalization toolbox for ambitious applications.

15 lines (11 loc) 585 B
import Helper from '@ember/component/helper'; import IntlService from '../services/intl'; // eslint-disable-next-line @typescript-eslint/ban-types export default abstract class AbstractHelper<V, O extends {} | undefined> extends Helper { readonly intl: IntlService; allowEmpty: boolean; abstract format(value: V, options?: O): string; compute(positional: [undefined], options: O & { allowEmpty: false }): never; compute(positional: [undefined], options: O & { allowEmpty: true }): void; compute(positional: [V], options: O & { allowEmpty?: boolean }): string | never; }