Skip to content

Commit

Permalink
chore: update type for axios config field
Browse files Browse the repository at this point in the history
  • Loading branch information
schottra committed Jan 5, 2021
1 parent 3ffaee3 commit 7956e0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/models/AdminEntity/AdminEntity.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import axios, { AxiosRequestConfig } from 'axios';
import axios, { AxiosRequestConfig, Method } from 'axios';
import { env } from 'common/env';
import { toBoolean } from 'common/utils';

Expand All @@ -23,7 +23,7 @@ import {
*/
async function request(
/** HTTP verb to use */
method: string,
method: Method,
/** API endpoint to use, should not include protocol/host/prefix */
endpoint: string,
/** Admin API options to use for the request */
Expand Down Expand Up @@ -110,7 +110,7 @@ export async function getAdminEntity<ResponseType, TransformedType>(
export interface PostEntityParams<RequestType, ResponseType, TransformedType> {
data: RequestType;
path: string;
method?: string;
method?: Method;
requestMessageType: EncodableType<RequestType>;
responseMessageType: DecodableType<ResponseType>;
transform?: AdminEntityTransformer<ResponseType, TransformedType>;
Expand Down

0 comments on commit 7956e0c

Please sign in to comment.