Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Add validation to assemble #31

Closed
eddyerburgh opened this issue Dec 12, 2017 · 0 comments
Closed

Add validation to assemble #31

eddyerburgh opened this issue Dec 12, 2017 · 0 comments

Comments

@eddyerburgh
Copy link
Member

eddyerburgh commented Dec 12, 2017

We should validate input for assemble so that users can see what they need to pass. For example, if you don't pass styles you get Cannot read property 'some' of undefined.

Instead, we should validate the arguments and throw clear error messages, maybe using superstruct.

znck added a commit to znck/vue-component-compiler that referenced this issue Jan 13, 2018
@znck znck closed this as completed in da252a7 Jan 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant