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

Fixed typings to Provide set Response Type #27

Merged
merged 1 commit into from
Aug 24, 2019

Conversation

danpan1
Copy link

@danpan1 danpan1 commented Aug 21, 2019

ability to set Response

interface SomeInterface { name : 32}
const { response, loading } = useAxios<SomeInterface[]>({
    url: `/api/v1/ambassador/${influencerId}/campaigns`,
    method: 'GET',
    trigger: influencerId
  });

const data = (response.data && response.data) || [];
data.filter(item => item.name !== 'Alex);

@int64ago int64ago self-requested a review August 24, 2019 02:01
@int64ago int64ago self-assigned this Aug 24, 2019
@int64ago
Copy link
Member

LGTM :-)

@int64ago int64ago merged commit a1cfde7 into use-hooks:master Aug 24, 2019
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