Skip to content

Commit ba2a45f

Browse files
authored
fix(gatsby): move typing for enableStatefulSourceNodes into Actions (#37933)
1 parent 579fe1e commit ba2a45f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/gatsby/index.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -434,11 +434,6 @@ export interface GatsbyNode<
434434
calllback: PluginCallback<void>
435435
): void | Promise<void>
436436

437-
/**
438-
* Marks the source plugin that called this function as stateful. Gatsby will not check for stale nodes for any plugin that calls this.
439-
*/
440-
enableStatefulSourceNodes?(this: void, plugin?: ActionPlugin)
441-
442437
/**
443438
* Called when a new node is created. Plugins wishing to extend or
444439
* transform nodes created by other plugins should implement this API.
@@ -1476,6 +1471,11 @@ export interface Actions {
14761471
plugin?: ActionPlugin,
14771472
traceId?: string
14781473
): void
1474+
1475+
/**
1476+
* Marks the source plugin that called this function as stateful. Gatsby will not check for stale nodes for any plugin that calls this.
1477+
*/
1478+
enableStatefulSourceNodes?(this: void, plugin?: ActionPlugin)
14791479
}
14801480

14811481
export interface Store {

0 commit comments

Comments
 (0)