fetch-intercept
fetch-intercept copied to clipboard
typing file incorrect
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
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