Open ShadowJonathan opened 2 years ago
This seems more tractable as a PR than an issue.
Agreed, I filed this issue as I found it, as it is a subtle bug that not even https://github.com/matrix-org/matrix-js-sdk/issues/2114 would pick up, as ISessionInfo
only has optional parameters, which would make ISessionInfo
mappable to any type that does not already define one of its properties (f.e. ISessionInfo
is mappable to number
, string
, and null
.)
This is allowed, because
ISessionInfo
(as an interface) only "comments" on the properties of corresponding types, soISessionInfo
, only having optional properties, could apply over any type.