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

refactor: eliminate need for error wrapper class #100

Merged
merged 5 commits into from
May 1, 2020

Conversation

lmiller1990
Copy link
Member

@lmiller1990 lmiller1990 commented Apr 30, 2020

Greatly simplify the concept of ErrorWrapper and eliminate the need for the WrapperAPI interfaces (since they are not implemented by more than one class).

It's everyone favorite kind of PR - one that has more deletions than insertions!

#91 and #92

@lmiller1990 lmiller1990 requested review from pikax, a team, afontcu, dobromir-hristov and JessicaSachs and removed request for a team April 30, 2020 11:55
Copy link
Member

@afontcu afontcu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not able to properly review TS-only pull requests, so I'm more than happy with more deletions than additions :D

Copy link
Contributor

@dobromir-hristov dobromir-hristov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice :)

return createWrapper(null, result[0])
}

return createWrapperError('VueWrapper')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see we lost the selector on the error wrapper. What was it used for?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Turns out it wasn't used for anything - maybe it was previously, but in the current master is it not used. So I just deleted it.

@lmiller1990 lmiller1990 merged commit 9d23c61 into master May 1, 2020
@lmiller1990 lmiller1990 deleted the feature/refactor-error-wrapper branch May 1, 2020 00:05
@cexbrayat
Copy link
Member

I'm late to the party, but I think this API is much more sound 👌

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.

None yet

5 participants