@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.

/@types/umd/

    Package Sidebar

    Install

    npm i @types/umd

    Weekly Downloads

    503

    Version

    3.0.4

    License

    MIT

    Unpacked Size

    3.65 kB

    Total Files

    5

    Last publish

    Collaborators

    • types