It is a follow up of a review and implementation of #48 issue.
It is possible to resolve path from axios function call.
const {data} = await axios.get<string>('/api');
Url is always the first argument of axios call. It might take different forms which need to be handled, for example it could be simple string, template string, concatenated string, variable from other module, etc.
The final result of the type sent to function is always string.
It is a follow up of a review and implementation of #48 issue.
It is possible to resolve path from axios function call.
const {data} = await axios.get<string>('/api');Url is always the first argument of axios call. It might take different forms which need to be handled, for example it could be simple string, template string, concatenated string, variable from other module, etc.
The final result of the type sent to function is always string.