[NTP Next] Remove Optional TS wrapper #45847
Labels
dev-concern
feature/new-tab
OS/Desktop
priority/P3
The next thing for us to work on. It'll ride the trains.
QA/No
release-notes/exclude
Description
Currently, an
Optional<T>
wrapper is used on the front-end, primarily to help distinguish between an enum (number) value of zero and the lack of a value. (Otherwise, testing for the presence of a value withif (value)
would be buggy.)We might be able to work around the need for this wrapper by changing the enums in mojo, such that enums have a
kNone
with a value of zero (essentially making them always-optional).The text was updated successfully, but these errors were encountered: