Types for CreateRemoteFileNodeArgs['cache']
are inconsistent with Gatsby types
#24735
Labels
topic: source-plugins
Relates to the Gatsby source plugins (e.g. -filesystem)
type: bug
An issue or pull request relating to a bug in Gatsby
Description
It seems like the types for
CreateRmoteFileNodeArgs['cache']
are no longer consistent with the types from Gatsby. This causes a type error when directly passing thecache
from theCreateResolversArgs
tocreateRemoteFileNode
.Steps to reproduce
clone this
https://github.com/ricokahler/bug-repro-gatsby-source-filesystem-types.git
See this line:
https://github.com/ricokahler/bug-repro-gatsby-source-filesystem-types/blob/6370676bb8dd959f8b815f0a5d490e61956aeaf7/create-resolvers.ts#L34-L40
Expected result
No type error
Actual result
Seems like the types of the cache in the gatsby-source-filesystem changed and no longer matches the types from gatsby itself.
Environment
The text was updated successfully, but these errors were encountered: