National Party Month

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

    7.17.0 • Public • Published

    Installation

    npm install --save @types/babel__register

    Summary

    This package contains type definitions for @babel/register (https://github.com/babel/babel/tree/main/packages/babel-register).

    Details

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

    index.d.ts

    // Type definitions for @babel/register 7.17
    // Project: https://github.com/babel/babel/tree/main/packages/babel-register, https://babeljs.io/docs/en/babel-register/
    // Definitions by: Paul Sanchez <https://github.com/basicdays>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // Minimum TypeScript Version: 4.1
    
    import { TransformOptions } from '@babel/core';
    
    interface RegisterOptions extends TransformOptions {
        /**
         * Setting this will remove the currently hooked extensions of `.es6`, `.es`,
         * `.jsx`, `.mjs` and `.js` so you'll have to add them back if you want them
         * to be used again.
         */
        extensions?: string[];
        /**
         * Setting this to false will disable the cache.
         */
        cache?: boolean;
    }
    
    declare function register(opts?: RegisterOptions): void;
    declare namespace register {
        export { register as default, RegisterOptions };
    }
    export = register;

    Additional Details

    • Last updated: Wed, 11 May 2022 15:01:36 GMT
    • Dependencies: @types/babel__core
    • Global values: none

    Credits

    These definitions were written by Paul Sanchez.

    Keywords

    none

    Install

    npm i @types/babel__register

    DownloadsWeekly Downloads

    18,859

    Version

    7.17.0

    License

    MIT

    Unpacked Size

    4.57 kB

    Total Files

    4

    Last publish

    Collaborators

    • types