mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 05:20:24 +08:00
26 lines
784 B
TypeScript
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;
|