nz-sanitizer.pipe.d.ts 959 B

123456789101112131415161718
  1. /**
  2. * Use of this source code is governed by an MIT-style license that can be
  3. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  4. */
  5. import { PipeTransform } from '@angular/core';
  6. import { DomSanitizer, SafeHtml, SafeResourceUrl, SafeStyle, SafeUrl } from '@angular/platform-browser';
  7. import { NzSafeAny } from 'ng-zorro-antd/core/types';
  8. import * as i0 from "@angular/core";
  9. export declare class NzSanitizerPipe implements PipeTransform {
  10. protected sanitizer: DomSanitizer;
  11. constructor(sanitizer: DomSanitizer);
  12. transform(value: NzSafeAny, type: 'html'): SafeHtml;
  13. transform(value: NzSafeAny, type: 'style'): SafeStyle;
  14. transform(value: NzSafeAny, type: 'url'): SafeUrl;
  15. transform(value: NzSafeAny, type: 'resourceUrl'): SafeResourceUrl;
  16. static ɵfac: i0.ɵɵFactoryDeclaration<NzSanitizerPipe, never>;
  17. static ɵpipe: i0.ɵɵPipeDeclaration<NzSanitizerPipe, "nzSanitizer", true>;
  18. }