UNPKG

babel-plugin-show-source

Version:

Explicit Function.prototype.toString() via Babel

5 lines (4 loc) 457 B
import { types } from '@babel/core'; export default function createInjectionStatement(funcId: string, funcCode: string | undefined, property: string, removeFunction?: boolean): types.ExpressionStatement | types.VariableDeclaration; export declare function createInjectionBlockStatement(funcCode?: string): types.BlockStatement; export declare function createInjectionObjectExpression(funcCode: string | undefined, property: string): types.ObjectExpression;