UNPKG

ngx2-pipes

Version:
25 lines (24 loc) 1.03 kB
import { PipeTransform } from '@angular/core'; import * as i0 from "@angular/core"; export declare type ByteUnit = 'B' | 'kB' | 'KB' | 'MB' | 'GB' | 'TB'; export declare class BytesPipe implements PipeTransform { static formats: { [key: string]: { max: number; prev?: ByteUnit; }; }; transform(input: any, decimal?: number, from?: ByteUnit, to?: ByteUnit): any; static formatResult(result: number, unit: string): string; static calculateResult(format: { max: number; prev?: ByteUnit; }, bytes: number): number; static ɵfac: i0.ɵɵFactoryDeclaration<BytesPipe, never>; static ɵpipe: i0.ɵɵPipeDeclaration<BytesPipe, "bytes">; } export declare class NgBytesPipeModule { static ɵfac: i0.ɵɵFactoryDeclaration<NgBytesPipeModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<NgBytesPipeModule, [typeof BytesPipe], never, [typeof BytesPipe]>; static ɵinj: i0.ɵɵInjectorDeclaration<NgBytesPipeModule>; }