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: Tue, 19 Sep 2017 08:29:53 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-330467937-1505809782-sysbot+gh@w3.org>
> The problem now is that there is no way to check whether all values are set or not.

As the `SensorReading` was merged to `Sensor`, when the data is available, all values must be set. Rick gave good example with `timestamp`. Semantically, not the best, thus :+1: for Mikhail's `hasReading`

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

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