@webilix/ngx-helper-m3
Version:
Helper library for Angular and Material 3
15 lines (14 loc) • 734 B
TypeScript
import { PipeTransform } from '@angular/core';
import { DomSanitizer, SafeHtml, SafeResourceUrl, SafeScript, SafeStyle, SafeUrl } from '@angular/platform-browser';
import * as i0 from "@angular/core";
type Types = 'HTML' | 'STYLE' | 'SCRIPT' | 'URL' | 'RESOURCE_URL';
export declare class NgxHelperSafePipe implements PipeTransform {
private readonly domSanitizer;
constructor(domSanitizer: DomSanitizer);
transform(value?: string | null, options?: {
type?: Types;
}): string | SafeHtml | SafeStyle | SafeScript | SafeUrl | SafeResourceUrl;
static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperSafePipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<NgxHelperSafePipe, "ngxHelperSafe", true>;
}
export {};