@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
37 lines (36 loc) • 1.41 kB
TypeScript
import { PipeTransform } from '@angular/core';
import * as i0 from "@angular/core";
/**
* Methods for converting media units (i.e. bytes) into display formats.
*/
export declare module MediaConversion2 {
/**
* The base of byte representation to use in conversion.
*/
enum Base {
Binary = 1024,
Decimal = 1000
}
/**
* Converts the supplied bytes into the appropriate display string.
*
* @param bytes The raw number of bytes.
* @param baseNumber The byte number representation base to use in conversion.
*/
function getConvertedValue(bytes: number, base: MediaConversion2.Base): string;
}
/**
* @smeDoc {@label ByteConverterPipe @id smeByteUnitConverter}
*
* @overview
* @file {@filepath ./examples/byte-converter-overview.md}
*
* @example {@label Example byte Converter @id byte-converter-example }
* @file {@filename component.html @filepath ./examples/byte-converter-example.component.html}
* @file {@filename component.ts @filepath ./examples/byte-converter-example.component.ts}
*/
export declare class ByteUnitConverterPipe implements PipeTransform {
transform(value: number, baseNumber: number): string;
static ɵfac: i0.ɵɵFactoryDeclaration<ByteUnitConverterPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<ByteUnitConverterPipe, "smeByteUnitConverter", false>;
}