UNPKG

580 BTypeScriptView Raw
1import moment from 'moment';
2import { PipeTransform } from '@angular/core';
3import { NgxMomentOptions } from './moment-options';
4import * as i0 from "@angular/core";
5export declare class DurationPipe implements PipeTransform {
6 allowedUnits: Array<string>;
7 constructor(momentOptions?: NgxMomentOptions);
8 transform(value: moment.DurationInputArg1, ...args: string[]): string;
9 private _applyOptions;
10 static ɵfac: i0.ɵɵFactoryDeclaration<DurationPipe, [{ optional: true; }]>;
11 static ɵpipe: i0.ɵɵPipeDeclaration<DurationPipe, "amDuration">;
12}