Skip to content

Commit

Permalink
fix(gatsby): correct args type in createParentChildLink (#32139)
Browse files Browse the repository at this point in the history
we don't have the child node when calling this method, and we only need `id` from the child node.
  • Loading branch information
alvis committed Jun 28, 2021
1 parent 23b3e64 commit 31828e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby/index.d.ts
Expand Up @@ -1105,7 +1105,7 @@ export interface Actions {

/** @see https://www.gatsbyjs.org/docs/actions/#createParentChildLink */
createParentChildLink(
args: { parent: Node; child: Node },
args: { parent: Node; child: NodeInput },
plugin?: ActionPlugin
): void

Expand Down

0 comments on commit 31828e4

Please sign in to comment.