W3C home > Mailing lists > Public > public-device-apis-log@w3.org > September 2017

Re: [sensors] Undefined values makes GS a pain to work with using TypeScript

From: Alexander Shalamov via GitHub <sysbot+gh@w3.org>
Date: Wed, 20 Sep 2017 08:18:27 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-330780007-1505895496-sysbot+gh@w3.org>
I think we can't set default value to be something other than `null`. What would be the default value for accelerometer, als or ambient air temperature sensor?

I think it is TS problem :smile: there are dozens of W3C APIs that have `nullable` properties.

-- 
GitHub Notification of comment by alexshalamov
Please view or discuss this issue at https://github.com/w3c/sensors/issues/269#issuecomment-330780007 using your GitHub account
Received on Wednesday, 20 September 2017 08:18:18 UTC

This archive was generated by hypermail 2.4.0 : Monday, 4 July 2022 12:47:54 UTC