Skip to content

Commit c9a24f9

Browse files
authored
fix(gatsby-source-filesystem): Update typings for createRemoteFileNode (#24750)
1 parent 2270c5a commit c9a24f9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/gatsby-source-filesystem/index.d.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Node, Store, Cache } from "gatsby"
1+
import { Node, Store, NodePluginArgs } from "gatsby"
22

33
/**
44
* @see https://www.gatsbyjs.org/packages/gatsby-source-filesystem/?=files#createfilepath
@@ -29,7 +29,8 @@ export interface CreateFilePathArgs {
2929
export interface CreateRemoteFileNodeArgs {
3030
url: string
3131
store: Store
32-
cache: Cache["cache"]
32+
// TODO: use GatsbyCache type (requires [email protected])
33+
cache: NodePluginArgs["cache"]
3334
createNode: Function
3435
createNodeId: Function
3536
parentNodeId?: string
@@ -46,7 +47,8 @@ export interface CreateRemoteFileNodeArgs {
4647
export interface CreateFileNodeFromBufferArgs {
4748
buffer: Buffer
4849
store: Store
49-
cache: Cache["cache"]
50+
// TODO: use GatsbyCache type (requires [email protected])
51+
cache: NodePluginArgs["cache"]
5052
createNode: Function
5153
createNodeId: Function
5254
parentNodeId?: string

0 commit comments

Comments
 (0)