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

Support optional parameters #6

Open
bitwiseman opened this issue Jun 10, 2015 · 1 comment
Open

Support optional parameters #6

bitwiseman opened this issue Jun 10, 2015 · 1 comment

Comments

@bitwiseman
Copy link

Once you support undefined having an easy shorthand for undefined or null as ? would be good

For example: string?.

@josdejong
Copy link
Owner

Yes indeed, but besides that typed-function should be able to accept a function being called with a parameter less. Right now it would just throw an error "Too few arguments" when you leave out the last (optional) argument.

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

No branches or pull requests

2 participants