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

For a hypothetical `find()` method that sometimes returns undefined the type signature would be `(undefined or TODO) find(...)` and not just `undefined find(...)`. As discussed above that TypeScript has `void` is largely historical and its meaning (null or undefined) is not that useful.

-- 
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-675987966

Received on Wednesday, 19 August 2020 09:02:58 UTC