Skip to content

Commit

Permalink
fixes issue gatsbyjs#35363 and CreateFileNodeFromBufferArgs
Browse files Browse the repository at this point in the history
  • Loading branch information
Apprentice76 committed Apr 13, 2022
1 parent f63d13d commit ddab52c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
13 changes: 5 additions & 8 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, NodePluginArgs } from "gatsby"
import { Node, GatsbyCache } from "gatsby"

/**
* @see https://www.gatsbyjs.com/plugins/gatsby-source-filesystem/?=files#createfilepath
Expand Down Expand Up @@ -28,9 +28,8 @@ export interface CreateFilePathArgs {

export interface CreateRemoteFileNodeArgs {
url: string
store: Store
// TODO: use GatsbyCache type (requires gatsby@2.22.13)
cache: NodePluginArgs["cache"]
cache?: GatsbyCache
getCache?: Function
createNode: Function
createNodeId: Function
parentNodeId?: string
Expand All @@ -41,14 +40,12 @@ export interface CreateRemoteFileNodeArgs {
httpHeaders?: object
ext?: string
name?: string
reporter: object
}

export interface CreateFileNodeFromBufferArgs {
buffer: Buffer
store: Store
// TODO: use GatsbyCache type (requires gatsby@2.22.13)
cache: NodePluginArgs["cache"]
cache?: GatsbyCache
getCache?: Function
createNode: Function
createNodeId: Function
parentNodeId?: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ const { createFileNode } = require(`./create-file-node`)
* @see gatsby/packages/gatsby/utils/cache.js
*/

/**
* @typedef {Reporter}
* @see gatsby/packages/gatsby-cli/lib/reporter.js
*/

/**
* @typedef {Auth}
* @type {Object}
Expand All @@ -33,7 +28,6 @@ const { createFileNode } = require(`./create-file-node`)
* @param {Function} options.createNode
* @param {Function} options.getCache
* @param {Auth} [options.auth]
* @param {Reporter} [options.reporter]
*/

/******************
Expand Down

0 comments on commit ddab52c

Please sign in to comment.