@omnia/fx
Version:
Provide Omnia Fx typings and tooling for clientside Omnia development.
32 lines (31 loc) • 1.02 kB
TypeScript
export declare class Require {
static get js(): {
load: typeof InternalRequire.loadJs;
ready: typeof InternalRequire.allJsReady;
};
static css(resources: Array<string> | string): void;
}
declare class InternalRequire {
private static _jsModules;
private static _cssResources;
static get js(): {
load: typeof InternalRequire.loadJs;
ready: typeof InternalRequire.allJsReady;
};
static css(resources: Array<string> | string): void;
static loadCss(url: string): void;
static allJsReady(callBack: () => void): void;
static loadJs(resources: Array<string> | string): {
wait: typeof InternalRequire.waitJs;
};
static waitJs(callBack: () => void): {
load: typeof InternalRequire.loadJs;
};
static loadScript(url: any): void;
private static onScriptLoad;
private static removeListener;
private static executeCallBacks;
private static get isOpera();
private static get readyRegExp();
}
export {};