Improve types in @babel/helper-function-name (#12550)
This commit is contained in:
parent
e8b08523f4
commit
584518d04c
@ -154,7 +154,12 @@ function visit(node, name, scope) {
|
|||||||
* @param {Boolean} localBinding whether a name could shadow a self-reference (e.g. converting arrow function)
|
* @param {Boolean} localBinding whether a name could shadow a self-reference (e.g. converting arrow function)
|
||||||
*/
|
*/
|
||||||
export default function (
|
export default function (
|
||||||
{ node, parent, scope, id }: { node: any; parent: any; scope: any; id: any },
|
{
|
||||||
|
node,
|
||||||
|
parent,
|
||||||
|
scope,
|
||||||
|
id,
|
||||||
|
}: { node: any; parent?: any; scope: any; id?: any },
|
||||||
localBinding = false,
|
localBinding = false,
|
||||||
) {
|
) {
|
||||||
// has an `id` so we don't need to infer one
|
// has an `id` so we don't need to infer one
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user