Skip to content

Resolve path from axios request #67

@pawfa

Description

@pawfa

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions