1- import * as NodeRequest from 'request' ;
21import { ResolveFunction , ResolveObject , GraphQLOperationType } from './graphql' ;
32/**
43 * Type definition of the options that users can pass to OpenAPI-to-GraphQL.
@@ -19,6 +18,9 @@ export declare type Report = {
1918 numMutationsCreated : number ;
2019 numSubscriptionsCreated : number ;
2120} ;
21+ export declare type RequestOptions = {
22+ [ key : string ] : any ;
23+ } ;
2224export declare type ConnectOptions = {
2325 [ key : string ] : boolean | number | string ;
2426} ;
@@ -126,7 +128,7 @@ export declare type Options = {
126128 * calls to the API backend.
127129 * e.g. Setup the web proxy to use.
128130 */
129- requestOptions ?: NodeRequest . OptionsWithUrl ;
131+ requestOptions ?: RequestOptions ;
130132 /**
131133 * Allows to override or add options to the PubSub connect object used to make
132134 * publish/subscribe to the API backend.
@@ -329,7 +331,7 @@ export declare type InternalOptions = {
329331 * calls to the API backend.
330332 * e.g. Setup the web proxy to use.
331333 */
332- requestOptions ?: NodeRequest . OptionsWithUrl ;
334+ requestOptions ?: RequestOptions ;
333335 /**
334336 * Allows to override or add options to the PubSub connect object used to make
335337 * publish/subscribe to the API backend.
0 commit comments