UNPKG

ngx-numeral

Version:

An Angular pipe module for interfacing the Awesome Numeraljs library.

32 lines (31 loc) 1.38 kB
import { PipeTransform, InjectionToken } from "@angular/core"; import { RegisterType, RoundingFunction, NumeralJSLocale, NumeralJsFormat } from "./numeraljs"; import * as i0 from "@angular/core"; export declare const DEFAULT_NUMERAL: InjectionToken<number>; export declare class NumeralPipe implements PipeTransform { private numeral; constructor(value?: string | number); transform(value: number, format: string): string; get version(): string; get isNumeral(): boolean; locale(key?: string): string; register(what: RegisterType, key: string, value: NumeralJSLocale | NumeralJsFormat): NumeralJSLocale | NumeralJsFormat; zeroFormat(format: string): void; nullFormat(format: string): void; defaultFormat(format: string): void; clone(): NumeralPipe; format(inputString?: string, roundingFunction?: RoundingFunction): string; formatCurrency(inputString?: string): string; unformat(inputString: string): number; value(): number; valueOf(): number; set(value: any): this; add(value: any): this; subtract(value: any): this; multiply(value: any): this; divide(value: any): this; difference(value: any): number; validate(value: any, culture: any): boolean; static ɵfac: i0.ɵɵFactoryDeclaration<NumeralPipe, never>; static ɵpipe: i0.ɵɵPipeDeclaration<NumeralPipe, "numeral">; }