Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
declare module 'aws-api-gateway-client' {
import { AxiosResponse } from 'axios'
interface AwsApiGatewayClientConfig {
accessKey?: string
secretKey?: string
sessionToken?: string
region?: string
apiKey?: string
invokeUrl: string
service?: string
defaultContentType?: string
defaultAcceptType?: string
systemClockOffset?: number
}
interface AwsApiGatewayClient {
invokeApi: <T>(
params: Object,
pathTemplate: string,
method: string,
additionalParams?: {
headers?: { Authorization?: string } | { [key: string]: string }
queryParams?: any
},
body?: any
) => Promise<AxiosResponse<T>>
}
export const newClient: (config: AwsApiGatewayClientConfig) => AwsApiGatewayClient
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.