diff --git a/packages/gatsby/index.d.ts b/packages/gatsby/index.d.ts index 8b2e0e45edb46..73e92b0c1d9f5 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 }