UNPKG

@calf/angular

Version:

Angular module of Calf framework.

19 lines (18 loc) 538 B
import { PipeTransform } from "@angular/core"; import { StatService } from "../services/stat.service"; declare type StatPipeMode = "icon" | "label" | "description" | "color"; /** * Abstract Stat pipe */ export declare abstract class StatPipe<T> implements PipeTransform { protected abstract service: StatService<T>; /** * Transform value * @param value * @param mode * @param args * @returns */ transform(value: any, mode?: StatPipeMode, ...args: any[]): string; } export {};