7.17.3 • Published 6 months ago

@types/babel__register v7.17.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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.