From 275d5007b1d0d95f02eaaf45201f30cfb931fc0c Mon Sep 17 00:00:00 2001 From: Murderlon Date: Fri, 10 Jul 2020 14:52:27 +0200 Subject: [PATCH 1/2] change `parent` type of `Visitor` --- types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index 09a9c37..2f55e22 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -38,7 +38,7 @@ declare namespace visit { type Visitor = ( node: V, index: number, - parent: Node + parent: Parent ) => void | Action | Index | ActionTuple } From d1d58c0512c8dbf48df8d5645d48f30b2b0aacdf Mon Sep 17 00:00:00 2001 From: Merlijn Vos Date: Fri, 10 Jul 2020 16:04:19 +0200 Subject: [PATCH 2/2] Apply feedback Co-authored-by: Christian Murphy --- types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index 2f55e22..75e23ec 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -38,7 +38,7 @@ declare namespace visit { type Visitor = ( node: V, index: number, - parent: Parent + parent: Parent | undefined ) => void | Action | Index | ActionTuple }