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

Replace AxiosPromise to Promise #162

Merged
merged 1 commit into from
Sep 21, 2018

Conversation

sinoru
Copy link
Contributor

@sinoru sinoru commented Sep 18, 2018

This will fixes #161.

Before of this commit, Type Definitions define $methods (i.e: $post, $get) returns AxiosPromise (which is Promise<AxiosResponse>), But actually in code it returns data(T), not AxiosResponse.
So I make changes AxiosPromise to Promise, Which just resolved as data(T).

@sinoru sinoru mentioned this pull request Sep 18, 2018
@pi0 pi0 merged commit 5fd9214 into nuxt-community:master Sep 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants