UNPKG

@types/babel__helper-plugin-utils

Version:
10 lines (8 loc) 346 B
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;