From 318f6fbda944c169d1a829a12feaf4a3b8075ce5 Mon Sep 17 00:00:00 2001 From: Karol Majewski Date: Mon, 19 Mar 2018 01:44:11 +0100 Subject: [PATCH] Patch type definitions for TypeScript ^2.7.1 --- index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.ts b/index.ts index d0f4fca..f1308a0 100644 --- a/index.ts +++ b/index.ts @@ -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] @@ -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]