Files
DefinitelyTyped/types/umd/index.d.ts
2017-05-31 22:42:15 -07:00

26 lines
784 B
TypeScript

// 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;
}
function prelude(moduleName: string, options?: boolean | Options): string;
function postlude(moduleName: string, options?: boolean | Options): string;
}
export = Umd;