UNPKG

758 BTypeScriptView Raw
1import { ChangeDetectorRef, PipeTransform, OnDestroy, NgZone } from '@angular/core';
2import * as moment from 'moment';
3export declare class CalendarPipe implements PipeTransform, OnDestroy {
4 private cdRef;
5 private ngZone;
6 /**
7 * @private Internal reference counter, so we can clean up when no instances are in use
8 * @type {number}
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: Date | moment.Moment, ...args: any[]): any;
16 ngOnDestroy(): void;
17 private static initTimer(ngZone);
18 private static removeTimer();
19 private static _getMillisecondsUntilUpdate();
20}