Skip to content

Commit

Permalink
Merge pull request #4 from karol-majewski/type-definitions
Browse files Browse the repository at this point in the history
Patch type definitions for TypeScript ^2.7.1
  • Loading branch information
rawrmaan authored Apr 5, 2018
2 parents 0e61906 + 318f6fb commit 4e23cc1
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 @@ -6,10 +6,10 @@ import axios, {
CancelTokenStatic
} from 'axios'

import {RestypedBase, RestypedRoute} from 'restyped'
import {RestypedBase, RestypedIndexedBase, RestypedRoute} from 'restyped'

export interface TypedAxiosRequestConfig<
API extends RestypedBase,
API extends RestypedIndexedBase,
Path extends keyof API,
Method extends keyof API[Path],
RouteDef extends RestypedRoute = API[Path][Method]
Expand All @@ -21,7 +21,7 @@ export interface TypedAxiosRequestConfig<
}

export interface TypedAxiosResponse<
API extends RestypedBase,
API extends RestypedIndexedBase,
Path extends keyof API,
Method extends keyof API[Path],
RouteDef extends RestypedRoute = API[Path][Method]
Expand Down

0 comments on commit 4e23cc1

Please sign in to comment.