diff --git a/packages/gatsby-source-filesystem/index.d.ts b/packages/gatsby-source-filesystem/index.d.ts index aec7ef5cd843a..d7c02db11d0f2 100644 --- a/packages/gatsby-source-filesystem/index.d.ts +++ b/packages/gatsby-source-filesystem/index.d.ts @@ -1,4 +1,4 @@ -import { Node, Store, Cache } from "gatsby" +import { Node, Store, NodePluginArgs } from "gatsby" /** * @see https://www.gatsbyjs.org/packages/gatsby-source-filesystem/?=files#createfilepath @@ -29,7 +29,8 @@ export interface CreateFilePathArgs { export interface CreateRemoteFileNodeArgs { url: string store: Store - cache: Cache["cache"] + // TODO: use GatsbyCache type (requires gatsby@2.22.13) + cache: NodePluginArgs["cache"] createNode: Function createNodeId: Function parentNodeId?: string @@ -46,7 +47,8 @@ export interface CreateRemoteFileNodeArgs { export interface CreateFileNodeFromBufferArgs { buffer: Buffer store: Store - cache: Cache["cache"] + // TODO: use GatsbyCache type (requires gatsby@2.22.13) + cache: NodePluginArgs["cache"] createNode: Function createNodeId: Function parentNodeId?: string