UNPKG

@rero/ng-core

Version:

RERO angular core library.

18 lines (17 loc) 614 B
import { PipeTransform } from '@angular/core'; import * as i0 from "@angular/core"; /** * Pipe for returning a default value if the given value is null or undefined. */ export declare class DefaultPipe implements PipeTransform { /** * Returns a default value. * * @param value Value to check. * @param defaultValue Value to return if value is null. * @return Value or default value. */ transform(value: any, defaultValue: any): any; static ɵfac: i0.ɵɵFactoryDeclaration<DefaultPipe, never>; static ɵpipe: i0.ɵɵPipeDeclaration<DefaultPipe, "default", false>; }