@types/babel__helper-plugin-utils
Version:
TypeScript definitions for @babel/helper-plugin-utils
36 lines (28 loc) • 1.45 kB
Markdown
# Installation
> `npm install --save @types/babel__helper-plugin-utils`
# Summary
This package contains type definitions for @babel/helper-plugin-utils (https://github.com/babel/babel/tree/main/packages/babel-helper-plugin-utils).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babel__helper-plugin-utils.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babel__helper-plugin-utils/index.d.ts)
````ts
// Type definitions for @babel/helper-plugin-utils 7.10
// Project: https://github.com/babel/babel/tree/main/packages/babel-helper-plugin-utils, https://babeljs.io/
// Definitions by: ExE Boss <https://github.com/ExE-Boss>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.8
import type * as babel from "@babel/core";
export type BabelAPI = typeof babel & babel.ConfigAPI;
export function declare<
O extends Record<string, any>,
R extends babel.PluginObj = babel.PluginObj,
>(
builder: (api: BabelAPI, options: O, dirname: string) => R,
): (api: object, options: O | null | undefined, dirname: string) => R;
````
### Additional Details
* Last updated: Fri, 15 Sep 2023 19:06:48 GMT
* Dependencies: [@types/babel__core](https://npmjs.com/package/@types/babel__core)
* Global values: none
# Credits
These definitions were written by [ExE Boss](https://github.com/ExE-Boss).