diff --git a/packages/gatsby/index.d.ts b/packages/gatsby/index.d.ts index 9d7d8f45a59e1..a49e08a832005 100644 --- a/packages/gatsby/index.d.ts +++ b/packages/gatsby/index.d.ts @@ -600,7 +600,13 @@ export interface PluginOptions { export type PluginCallback = (err: Error | null, result?: any) => void export interface CreatePagesArgs extends ParentSpanPluginArgs { - graphql: Function + graphql( + query: string, + variables?: TVariables + ): Promise<{ + errors?: any + data?: TData + }> traceId: string waitForCascadingActions: boolean }