typescript-closure-tools
Version:
Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files
32 lines (27 loc) • 1.35 kB
TypeScript
/// <reference path="../../../globals.d.ts" />
/// <reference path="./moduleinfo.d.ts" />
declare module goog.module {
interface AbstractModuleLoader {
/**
* Loads a list of JavaScript modules.
*
* @param {Array.<string>} ids The module ids in dependency order.
* @param {Object} moduleInfoMap A mapping from module id to ModuleInfo object.
* @param {function()?=} opt_successFn The callback if module loading is a
* success.
* @param {function(?number)?=} opt_errorFn The callback if module loading is an
* error.
* @param {function()?=} opt_timeoutFn The callback if module loading times out.
* @param {boolean=} opt_forceReload Whether to bypass cache while loading the
* module.
*/
loadModules(ids: string[], moduleInfoMap: Object, opt_successFn?: { (): any /*missing*/ }, opt_errorFn?: { (_0: number): any /*missing*/ }, opt_timeoutFn?: { (): any /*missing*/ }, opt_forceReload?: boolean): void;
/**
* Pre-fetches a JavaScript module.
*
* @param {string} id The module id.
* @param {!goog.module.ModuleInfo} moduleInfo The module info.
*/
prefetchModule(id: string, moduleInfo: goog.module.ModuleInfo): void;
}
}