@@ -931,7 +931,7 @@ export interface NodePluginArgs {
931
931
* }
932
932
* }
933
933
*/
934
- loadNodeContent ( node : Node ) : Promise < string >
934
+ loadNodeContent ( this : void , node : Node ) : Promise < string >
935
935
936
936
/**
937
937
* Internal redux state used for application state. Do not use, unless you
@@ -953,7 +953,7 @@ export interface NodePluginArgs {
953
953
* @example
954
954
* const allNodes = getNodes()
955
955
*/
956
- getNodes ( ) : Node [ ]
956
+ getNodes ( this : void ) : Node [ ]
957
957
958
958
/**
959
959
* Get single node by given ID.
@@ -965,7 +965,7 @@ export interface NodePluginArgs {
965
965
* @example
966
966
* const node = getNode(id)
967
967
*/
968
- getNode ( id : string ) : Node
968
+ getNode ( this : void , id : string ) : Node
969
969
970
970
/**
971
971
* Get array of nodes of given type.
@@ -975,7 +975,7 @@ export interface NodePluginArgs {
975
975
* @example
976
976
* const markdownNodes = getNodesByType(`MarkdownRemark`)
977
977
*/
978
- getNodesByType ( type : string ) : Node [ ]
978
+ getNodesByType ( this : void , type : string ) : Node [ ]
979
979
980
980
/**
981
981
* Set of utilities to output information to user
@@ -993,7 +993,7 @@ export interface NodePluginArgs {
993
993
* @param path of the node.
994
994
* @returns Single node instance.
995
995
*/
996
- getNodeAndSavePathDependency ( id : string , path : string ) : Node
996
+ getNodeAndSavePathDependency ( this : void , id : string , path : string ) : Node
997
997
998
998
/**
999
999
* Key-value store used to persist results of time/memory/cpu intensive
@@ -1013,7 +1013,7 @@ export interface NodePluginArgs {
1013
1013
* ...restOfNodeData
1014
1014
* }
1015
1015
*/
1016
- createNodeId ( input : string ) : string
1016
+ createNodeId ( this : void , input : string ) : string
1017
1017
1018
1018
/**
1019
1019
* Create a stable content digest from a string or object, you can use the
@@ -1031,7 +1031,7 @@ export interface NodePluginArgs {
1031
1031
* }
1032
1032
* }
1033
1033
*/
1034
- createContentDigest ( input : string | object ) : string
1034
+ createContentDigest ( this : void , input : string | object ) : string
1035
1035
1036
1036
/**
1037
1037
* Set of utilities that allow adding more detailed tracing for plugins.
@@ -1070,10 +1070,11 @@ export interface BuildArgs extends ParentSpanPluginArgs {
1070
1070
1071
1071
export interface Actions {
1072
1072
/** @see https://www.gatsbyjs.org/docs/actions/#deletePage */
1073
- deletePage ( args : { path : string ; component : string } ) : void
1073
+ deletePage ( this : void , args : { path : string ; component : string } ) : void
1074
1074
1075
1075
/** @see https://www.gatsbyjs.org/docs/actions/#createPage */
1076
1076
createPage < TContext = Record < string , unknown > > (
1077
+ this : void ,
1077
1078
args : Page < TContext > ,
1078
1079
plugin ?: ActionPlugin ,
1079
1080
option ?: ActionOptions
@@ -1084,6 +1085,7 @@ export interface Actions {
1084
1085
1085
1086
/** @see https://www.gatsbyjs.org/docs/actions/#createNode */
1086
1087
createNode < TNode = Record < string , unknown > > (
1088
+ this : void ,
1087
1089
node : NodeInput & TNode ,
1088
1090
plugin ?: ActionPlugin ,
1089
1091
options ?: ActionOptions
@@ -1094,6 +1096,7 @@ export interface Actions {
1094
1096
1095
1097
/** @see https://www.gatsbyjs.org/docs/actions/#createNodeField */
1096
1098
createNodeField (
1099
+ this : void ,
1097
1100
args : {
1098
1101
node : Node
1099
1102
name ?: string
@@ -1105,39 +1108,44 @@ export interface Actions {
1105
1108
1106
1109
/** @see https://www.gatsbyjs.org/docs/actions/#createParentChildLink */
1107
1110
createParentChildLink (
1111
+ this : void ,
1108
1112
args : { parent : Node ; child : NodeInput } ,
1109
1113
plugin ?: ActionPlugin
1110
1114
) : void
1111
1115
1112
1116
/** @see https://www.gatsbyjs.org/docs/actions/#setWebpackConfig */
1113
- setWebpackConfig ( config : object , plugin ?: ActionPlugin ) : void
1117
+ setWebpackConfig ( this : void , config : object , plugin ?: ActionPlugin ) : void
1114
1118
1115
1119
/** @see https://www.gatsbyjs.org/docs/actions/#replaceWebpackConfig */
1116
- replaceWebpackConfig ( config : object , plugin ?: ActionPlugin ) : void
1120
+ replaceWebpackConfig ( this : void , config : object , plugin ?: ActionPlugin ) : void
1117
1121
1118
1122
/** @see https://www.gatsbyjs.org/docs/actions/#setBabelOptions */
1119
- setBabelOptions ( options : object , plugin ?: ActionPlugin ) : void
1123
+ setBabelOptions ( this : void , options : object , plugin ?: ActionPlugin ) : void
1120
1124
1121
1125
/** @see https://www.gatsbyjs.org/docs/actions/#setBabelPlugin */
1122
1126
setBabelPlugin (
1127
+ this : void ,
1123
1128
config : { name : string ; options : object } ,
1124
1129
plugin ?: ActionPlugin
1125
1130
) : void
1126
1131
1127
1132
/** @see https://www.gatsbyjs.org/docs/actions/#setBabelPreset */
1128
1133
setBabelPreset (
1134
+ this : void ,
1129
1135
config : { name : string ; options : object } ,
1130
1136
plugin ?: ActionPlugin
1131
1137
) : void
1132
1138
1133
1139
/** @see https://www.gatsbyjs.org/docs/actions/#createJob */
1134
1140
createJob (
1141
+ this : void ,
1135
1142
job : Record < string , unknown > & { id : string } ,
1136
1143
plugin ?: ActionPlugin
1137
1144
) : void
1138
1145
1139
1146
/** @see https://www.gatsbyjs.org/docs/actions/#createJobV2 */
1140
1147
createJobV2 (
1148
+ this : void ,
1141
1149
job : {
1142
1150
name : string
1143
1151
inputPaths : string [ ]
@@ -1149,18 +1157,24 @@ export interface Actions {
1149
1157
1150
1158
/** @see https://www.gatsbyjs.org/docs/actions/#setJob */
1151
1159
setJob (
1160
+ this : void ,
1152
1161
job : Record < string , unknown > & { id : string } ,
1153
1162
plugin ?: ActionPlugin
1154
1163
) : void
1155
1164
1156
1165
/** @see https://www.gatsbyjs.org/docs/actions/#endJob */
1157
- endJob ( job : { id : string } , plugin ?: ActionPlugin ) : void
1166
+ endJob ( this : void , job : { id : string } , plugin ?: ActionPlugin ) : void
1158
1167
1159
1168
/** @see https://www.gatsbyjs.org/docs/actions/#setPluginStatus */
1160
- setPluginStatus ( status : Record < string , unknown > , plugin ?: ActionPlugin ) : void
1169
+ setPluginStatus (
1170
+ this : void ,
1171
+ status : Record < string , unknown > ,
1172
+ plugin ?: ActionPlugin ,
1173
+ ) : void ;
1161
1174
1162
1175
/** @see https://www.gatsbyjs.org/docs/actions/#createRedirect */
1163
1176
createRedirect (
1177
+ this : void ,
1164
1178
redirect : {
1165
1179
fromPath : string
1166
1180
isPermanent ?: boolean
@@ -1176,13 +1190,15 @@ export interface Actions {
1176
1190
1177
1191
/** @see https://www.gatsbyjs.org/docs/actions/#addThirdPartySchema */
1178
1192
addThirdPartySchema (
1193
+ this : void ,
1179
1194
args : { schema : object } ,
1180
1195
plugin ?: ActionPlugin ,
1181
1196
traceId ?: string
1182
1197
) : void
1183
1198
1184
1199
/** @see https://www.gatsbyjs.org/docs/actions/#createTypes */
1185
1200
createTypes (
1201
+ this : void ,
1186
1202
types :
1187
1203
| string
1188
1204
| GraphQLOutputType
@@ -1196,12 +1212,14 @@ export interface Actions {
1196
1212
1197
1213
/** @see https://www.gatsbyjs.org/docs/actions/#createFieldExtension */
1198
1214
createFieldExtension (
1215
+ this : void ,
1199
1216
extension : object ,
1200
1217
plugin ?: ActionPlugin ,
1201
1218
traceId ?: string
1202
1219
) : void
1203
1220
1204
1221
printTypeDefinitions (
1222
+ this : void ,
1205
1223
path ?: string ,
1206
1224
include ?: { types ?: Array < string > ; plugins ?: Array < string > } ,
1207
1225
exclude ?: { types ?: Array < string > ; plugins ?: Array < string > } ,
0 commit comments