Re: [heycam/webidl] add a type to represent the undefined value (#60)

It's possible that the needs of TypeScript and Web IDL diverge, and that's OK. Web IDL intends to model JavaScript, where functions that don't return anything, return `undefined`.

There is no distinction in JavaScript between functions that "actually _don't_ return anything" vs. "returning `undefined`", and so we won't make such a distinction in Web IDL.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/60#issuecomment-676355310

Received on Wednesday, 19 August 2020 13:27:08 UTC