fetch-intercept icon indicating copy to clipboard operation
fetch-intercept copied to clipboard

typing file incorrect

Open arvindnama opened this issue 5 years ago • 1 comments

Request intercept Interface looks like this:: request?(url: string, config: any): Promise<any[]> | any[];

Based on looking at the code , the library invoked intercept's request api with the exact same args as that of fetch so it should be request?(input: RequestInfo, init?: RequestInit): Promise<any[]> | any[];

This will make the library usage better

arvindnama avatar Nov 14 '19 00:11 arvindnama

PS :: i can put in a PR for this , put i dont not have permission to push to remote branch . if you dont can i get permission to contribute to this Request

arvindnama avatar Nov 14 '19 00:11 arvindnama