UNPKG

ng-zorro-antd

Version:

An enterprise-class UI components based on Ant Design and Angular

23 lines (22 loc) 726 B
/** * 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 { Platform } from '@angular/cdk/platform'; import { NzSafeAny } from 'ng-zorro-antd/core/types'; interface PreloadOption { src: string; srcset?: string; } export declare type PreloadDisposeHandle = () => void; export declare class ImagePreloadService { private document; private platform; private counter; private linkRefs; constructor(document: NzSafeAny, platform: Platform); addPreload(option: PreloadOption): PreloadDisposeHandle; private appendPreloadLink; private removePreloadLink; } export {};