ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
19 lines (18 loc) • 959 B
TypeScript
/**
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
import { PipeTransform } from '@angular/core';
import { DomSanitizer, SafeHtml, SafeResourceUrl, SafeStyle, SafeUrl } from '@angular/platform-browser';
import { NzSafeAny } from 'ng-zorro-antd/core/types';
import * as i0 from "@angular/core";
export declare class NzSanitizerPipe implements PipeTransform {
protected sanitizer: DomSanitizer;
constructor(sanitizer: DomSanitizer);
transform(value: NzSafeAny, type: 'html'): SafeHtml;
transform(value: NzSafeAny, type: 'style'): SafeStyle;
transform(value: NzSafeAny, type: 'url'): SafeUrl;
transform(value: NzSafeAny, type: 'resourceUrl'): SafeResourceUrl;
static ɵfac: i0.ɵɵFactoryDeclaration<NzSanitizerPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<NzSanitizerPipe, "nzSanitizer", true>;
}