- From: Jed Fox via GitHub <sysbot+gh@w3.org>
- Date: Mon, 08 May 2023 02:15:22 +0000
- To: public-houdini-archive@w3.org
j-f1 has just created a new issue for https://github.com/w3c/css-houdini-drafts: == [css-typed-om] StylePropertyMapReadOnly.get return value should be nullable == Spec section: https://drafts.css-houdini.org/css-typed-om/#the-stylepropertymap Current implementation: ```ts interface StylePropertyMapReadOnly { (undefined or CSSStyleValue) get(USVString property); } ``` I think this should be: ```ts interface StylePropertyMapReadOnly { CSSStyleValue? get(USVString property); } ``` I don’t think there are any other specs that use the `(undefined or X)` union style to express an optional return value, but there are plenty of specs that use `X?`, e.g. [`DataTransferItem.getAsFile()`](https://html.spec.whatwg.org/multipage/dnd.html#the-datatransferitem-interface) Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/1095 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 8 May 2023 02:15:24 UTC