From a51baec4bd2455a6e8befc8344724d59f1034851 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danilo=20B=C3=BCrger?= Date: Tue, 24 Mar 2020 15:07:17 +0100 Subject: [PATCH] Improved graphql type in BuildArgs Copied from https://github.com/gatsbyjs/gatsby/commit/5bedc01e0fce12c4d7fb3f0d7df4ab1fba058530 --- packages/gatsby/index.d.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/gatsby/index.d.ts b/packages/gatsby/index.d.ts index 7af526d86170d..f11be65d787c6 100644 --- a/packages/gatsby/index.d.ts +++ b/packages/gatsby/index.d.ts @@ -957,7 +957,13 @@ interface ActionOptions { } export interface BuildArgs extends ParentSpanPluginArgs { - graphql: Function + graphql( + query: string, + variables?: TVariables + ): Promise<{ + errors?: any + data?: TData + }> } export interface Actions {