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

7.17.3 • 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

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

Credits

These definitions were written by Paul Sanchez.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @types/babel__register

    Weekly Downloads

    28,842

    Version

    7.17.3

    License

    MIT

    Unpacked Size

    3.88 kB

    Total Files

    5

    Last publish

    Collaborators

    • types