ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
26 lines (25 loc) • 906 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 { Platform } from '@angular/cdk/platform';
import { NzSafeAny } from 'ng-zorro-antd/core/types';
import * as i0 from "@angular/core";
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;
static ɵfac: i0.ɵɵFactoryDeclaration<ImagePreloadService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<ImagePreloadService>;
}
export {};