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

feat(request): change response types from any to unknown #23

Merged
merged 1 commit into from
May 6, 2020
Merged

feat(request): change response types from any to unknown #23

merged 1 commit into from
May 6, 2020

Conversation

chanceaclark
Copy link
Contributor

@chanceaclark chanceaclark commented May 4, 2020

What?

Change Response type to unknown to better reflect the response.

Why?

The will help reduce type errors and more accurately types the response.

Known Issues

This will only work in TS 3.8+ due to a regression bug in TS:
microsoft/TypeScript#33568

Testing / Proof

Manual.
Screen Shot 2020-05-05 at 1 14 13 PM

ping: @bigcommerce/frontend

@chanceaclark chanceaclark requested review from davidchin and deini May 5, 2020 18:31
src/response.ts Outdated Show resolved Hide resolved
@chanceaclark chanceaclark merged commit 18c0226 into bigcommerce:master May 6, 2020
@chanceaclark chanceaclark deleted the feat/unknown-type branch May 6, 2020 19:59
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.

3 participants