Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
rawrmaan committed Nov 3, 2017
1 parent c051724 commit dc5f62e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface TypedAxiosResponse<

export interface TypedAxiosInstance<API extends RestypedBase = any>
extends AxiosInstance {
request<Path extends keyof API, Method extends keyof API['Path'] = 'GET'>(
request<Path extends keyof API, Method extends keyof API[Path] = 'GET'>(
config: TypedAxiosRequestConfig<API, Path, Method>
): Promise<TypedAxiosResponse<API, Path, Method>>

Expand Down Expand Up @@ -72,11 +72,11 @@ export interface TypedAxiosInstance<API extends RestypedBase = any>

export interface TypedAxiosStatic<API extends RestypedBase = any>
extends TypedAxiosInstance<API> {
<Path extends keyof API, Method extends keyof API['Path'] = 'GET'>(
<Path extends keyof API, Method extends keyof API[Path] = 'GET'>(
config: TypedAxiosRequestConfig<API, Path, Method>
): Promise<TypedAxiosResponse<API, Path, Method>>

<Path extends keyof API, Method extends keyof API['Path']>(
<Path extends keyof API, Method extends keyof API[Path]>(
url: Path | string,
config?: TypedAxiosRequestConfig<API, Path, Method>
): Promise<TypedAxiosResponse<API, Path, Method>>
Expand Down

0 comments on commit dc5f62e

Please sign in to comment.