Skip to content

Commit

Permalink
fix(gatsby-source-filesystem): Update typings for createRemoteFileNode (
Browse files Browse the repository at this point in the history
  • Loading branch information
vladar authored Jun 16, 2020
1 parent 2270c5a commit c9a24f9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/gatsby-source-filesystem/index.d.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c9a24f9

Please sign in to comment.