UNPKG
babel-plugin-show-source
Version:
latest (0.2.1)
0.2.1
0.1.4
0.1.3
0.1.1
0.1.0
Explicit Function.prototype.toString() via Babel
nouvist/babel-plugin-show-source
babel-plugin-show-source
/
types
/
createInjectionWrapper.d.ts
3 lines
(2 loc)
•
290 B
TypeScript
View Raw
1
2
3
import
{
NodePath
, types }
from
'@babel/core'
;
export
default
function
createInjectionWrapper
(
path
:
NodePath
<types.
ArrowFunctionExpression
| types.
FunctionExpression
>,
funcCode
:
string
|
undefined
,
property
:
string
,
removeFunction
?:
boolean
): types.
CallExpression
| types.
ObjectExpression
;