1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
// Type definitions for umd 3.0
// Project: https://github.com/ForbesLindesay/umd
// Definitions by: TeamworkGuy2 <https://github.com/TeamworkGuy2>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/** Universal Module Definition for use in automated build systems
* - simple synchronous wrapping of a string
* - return style module support
* - CommonJS support
* - prevents internal UMDs from conflicting
*/
declare function Umd(name: string, src: string, options?: boolean | Umd.Options): string;
declare namespace Umd {
interface Options {
commonJS?: boolean | undefined;
}
function prelude(moduleName: string, options?: boolean | Options): string;
function postlude(moduleName: string, options?: boolean | Options): string;
}
export = Umd;
|