File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1038,6 +1038,13 @@ export interface NodePluginArgs {
1038
1038
*/
1039
1039
cache : GatsbyCache
1040
1040
1041
+ /**
1042
+ * Get cache instance by name - this should only be used by plugins that accept subplugins.
1043
+ * @param id id of the node
1044
+ * @returns See [cache](https://www.gatsbyjs.com/docs/reference/config-files/node-api-helpers/#cache) section for reference.
1045
+ */
1046
+ getCache ( this : void , id : string ) : GatsbyCache
1047
+
1041
1048
/**
1042
1049
* Utility function useful to generate globally unique and stable node IDs.
1043
1050
* It will generate different IDs for different plugins if they use same
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ const GatsbyTracing = {
159
159
/**
160
160
* Get cache instance by name - this should only be used by plugins that
161
161
* accept subplugins.
162
- * @param {string } id Test
162
+ * @param {string } id id of the node
163
163
* @returns {GatsbyCache } See [`cache`](#cache) section for reference.
164
164
*/
165
165
module . exports . getCache = true ;
You can’t perform that action at this time.
0 commit comments