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

Add support for basic types #1

Merged
merged 10 commits into from
Apr 13, 2020
Merged

Conversation

janjakubnanista
Copy link
Owner

This includes:

  • primitives (number, string, boolean)
  • arrays
  • tuples
  • classes (using instanceof keyword)
  • interface types (defined both using interface and type keywords)
  • string based Record types
  • union types
  • intersection types
  • conditional types
  • generics
  • functions (Note: due to the nature of JavaScript it is not possible to check the return type of a function. What is checked is the typeof the value)

What is not included:

  • number based Record types
  • Date checks based on instanceof keyword

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

1 participant