$ cnpm install @types/babel__register
npm install --save @types/babel__register
This package contains type definitions for @babel/register (https://github.com/babel/babel/tree/main/packages/babel-register).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babel__register.
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;
These definitions were written by Paul Sanchez.
Copyright 2013 - present © cnpmjs.org | Home |