You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where we have to manually assert the presence of the ready property. We could take advantage of a union type/type narrowing to make this more intuitive and "safer".
Furthermore, getting deeply nested properties off of ActiveClient and company can be really nasty, e.g.
Getting the
ActiveClient
instance from a client is a little hairy and error-prone. You have to do stuff like:Where we have to manually assert the presence of the
ready
property. We could take advantage of a union type/type narrowing to make this more intuitive and "safer".Furthermore, getting deeply nested properties off of
ActiveClient
and company can be really nasty, e.g.By the looks of it, we didn't port over a few methods that would make this a bit cleaner, like this one from
ready.rs
:The equivalent in snowglobe would let us rewrite the above TypeScript snippet as:
The text was updated successfully, but these errors were encountered: