Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export RequestConfig and related types #9

Open
simplesmiler opened this issue Apr 28, 2021 · 1 comment
Open

Export RequestConfig and related types #9

simplesmiler opened this issue Apr 28, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@simplesmiler
Copy link
Owner

Use case:

// No public type for this
const config = {
  params: { ... },
  axios: { ... },
};

if (condition) {
  await taxios.$get('/v1/endpoint-one', config);
} else {
  await taxios.$get('/v1/endpoint-two', config);
}
@simplesmiler
Copy link
Owner Author

Config is closest, but it does not include the axios field.

@simplesmiler simplesmiler added the enhancement New feature or request label Aug 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant