Skip to content

Commit 8cd97bd

Browse files
Fix parent type of Visitor (#18)
Reviewed-by: Christian Murphy <[email protected]> Co-authored-by: Christian Murphy <[email protected]>
1 parent 7b6a3d5 commit 8cd97bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ declare namespace visit {
3838
type Visitor<V extends Node> = (
3939
node: V,
4040
index: number,
41-
parent: Node
41+
parent: Parent | undefined
4242
) => void | Action | Index | ActionTuple
4343
}
4444

0 commit comments

Comments
 (0)