@types/umd
TypeScript icon, indicating that this package has built-in type declarations

3.0.4 • Public • Published

Installation

npm install --save @types/umd

Summary

This package contains type definitions for umd (https://github.com/ForbesLindesay/umd).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/umd.

index.d.ts

/** 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;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by TeamworkGuy2.

Versions

Current Tags

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.0.4
    584
  • 3.0.3
    1
  • 3.0.2
    23
  • 3.0.1
    9
  • 3.0.0
    5

Package Sidebar

Install

npm i @types/umd

Weekly Downloads

622

Version

3.0.4

License

MIT

Unpacked Size

3.65 kB

Total Files

5

Last publish

Collaborators

  • types