Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

VoidType needed #10

Open
amir-arad opened this issue Jul 21, 2016 · 0 comments
Open

VoidType needed #10

amir-arad opened this issue Jul 21, 2016 · 0 comments

Comments

@amir-arad
Copy link
Contributor

Use-cases:

  • generic parameter (e.g. EventHandler<void>)
  • method parameters schema

how does returning void differ from returning undefined?
Or is this for code-sense-foo?

void is a special type that only matches undefined, so when the type signature is void, you expect the runtime value to be undefined.

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