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 kind logic, add enum, tuple, dict, union, intersection #28

Merged
merged 1 commit into from Dec 2, 2017

Conversation

ianstormtaylor
Copy link
Owner

Refactors the kind logic to be a bit cleaner and more composed. This also adds dict, enum, tuple, union, intersection struct keywords as well. For example:

// tuples
const Move = struct(['string', 'number'])

// enums
const Name = struct.enum(['john', 'jane', 'jack', 'jill'])

Closes #5
Closes #7
Closes #19
Closes #25

@ianstormtaylor ianstormtaylor added debt feature ✶ breaking Changes that would mean a breaking API change labels Dec 2, 2017
@ianstormtaylor ianstormtaylor merged commit 96e2295 into master Dec 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✶ breaking Changes that would mean a breaking API change debt feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant