| 1 | # Installation |
| 2 | > `npm install --save @types/umd` |
| 3 | |
| 4 | # Summary |
| 5 | This package contains type definitions for umd (https://github.com/ForbesLindesay/umd). |
| 6 | |
| 7 | # Details |
| 8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/umd. |
| 9 | ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/umd/index.d.ts) |
| 10 | ````ts |
| 11 | /** Universal Module Definition for use in automated build systems |
| 12 | * - simple synchronous wrapping of a string |
| 13 | * - return style module support |
| 14 | * - CommonJS support |
| 15 | * - prevents internal UMDs from conflicting |
| 16 | */ |
| 17 | declare function Umd(name: string, src: string, options?: boolean | Umd.Options): string; |
| 18 | |
| 19 | declare namespace Umd { |
| 20 | interface Options { |
| 21 | commonJS?: boolean | undefined; |
| 22 | } |
| 23 | |
| 24 | function prelude(moduleName: string, options?: boolean | Options): string; |
| 25 | |
| 26 | function postlude(moduleName: string, options?: boolean | Options): string; |
| 27 | } |
| 28 | |
| 29 | export = Umd; |
| 30 | |
| 31 | ```` |
| 32 | |
| 33 | ### Additional Details |
| 34 | * Last updated: Tue, 07 Nov 2023 15:11:36 GMT |
| 35 | * Dependencies: none |
| 36 | |
| 37 | # Credits |
| 38 | These definitions were written by [TeamworkGuy2](https://github.com/TeamworkGuy2). |