Skip to content

Commit

Permalink
chore(gatsby): Improve graphql type definitions in BuildArgs (#22544)
Browse files Browse the repository at this point in the history
Copied from 5bedc01
  • Loading branch information
danilobuerger committed Apr 9, 2020
1 parent ecc1ac0 commit 6a4adf1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/gatsby/index.d.ts
Expand Up @@ -959,7 +959,13 @@ interface ActionOptions {
}

export interface BuildArgs extends ParentSpanPluginArgs {
graphql: Function
graphql<TData, TVariables = any>(
query: string,
variables?: TVariables
): Promise<{
errors?: any
data?: TData
}>
}

export interface Actions {
Expand Down

0 comments on commit 6a4adf1

Please sign in to comment.