UNPKG

firebaseui-angular-i18n

Version:

[![npm version](https://badge.fury.io/js/firebaseui-angular-i18n.svg)](https://badge.fury.io/js/firebaseui-angular-i18n)

42 lines (41 loc) 1.27 kB
import * as i0 from "@angular/core"; export interface Resource { name: string; type: "css" | "js"; src: string; } export interface LoadedResource { [name: string]: { loaded: boolean; type: "css" | "js"; src: string; }; } export declare class DynamicLoaderService { private static ResourcesStore; private static LoadedResources; private _document; constructor(_document?: any); /** * Loads a series of previously registered Script(s) * @param resNames The list of resources to load */ load(...resNames: string[]): Promise<unknown[]>; /** * Loads a script given it's name. * @param name Name of the script to laod. */ loadResource(name: string): Promise<unknown>; /** * Registers a series of Resource(s), without loading them * @param resources A list of Resource(s) */ register(...resources: Resource[]): void; /** * Registers and then loads a list of Resource(s) * @param resources The list of resources */ registerAndLoad(...resources: Resource[]): Promise<unknown[]>; static ɵfac: i0.ɵɵFactoryDeclaration<DynamicLoaderService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<DynamicLoaderService>; }