UNPKG

884 BTypeScriptView Raw
1import { ChangeDetectorRef, PipeTransform, OnDestroy, NgZone } from '@angular/core';
2import moment from 'moment';
3import * as i0 from "@angular/core";
4export declare class CalendarPipe implements PipeTransform, OnDestroy {
5 private cdRef;
6 private ngZone;
7 /**
8 * Internal reference counter, so we can clean up when no instances are in use
9 */
10 private static refs;
11 private static timer;
12 private static midnight;
13 private midnightSub;
14 constructor(cdRef: ChangeDetectorRef, ngZone: NgZone);
15 transform(value: moment.MomentInput, ...args: any[]): any;
16 ngOnDestroy(): void;
17 private static initTimer;
18 private static removeTimer;
19 private static _getMillisecondsUntilUpdate;
20 static ɵfac: i0.ɵɵFactoryDeclaration<CalendarPipe, never>;
21 static ɵpipe: i0.ɵɵPipeDeclaration<CalendarPipe, "amCalendar">;
22}