Skip to content

Commit 31828e4

Browse files
authored
fix(gatsby): correct args type in createParentChildLink (#32139)
we don't have the child node when calling this method, and we only need `id` from the child node.
1 parent 23b3e64 commit 31828e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gatsby/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ export interface Actions {
11051105

11061106
/** @see https://www.gatsbyjs.org/docs/actions/#createParentChildLink */
11071107
createParentChildLink(
1108-
args: { parent: Node; child: Node },
1108+
args: { parent: Node; child: NodeInput },
11091109
plugin?: ActionPlugin
11101110
): void
11111111

0 commit comments

Comments
 (0)