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
interfaceA{[index: string]: string;}interfaceB{a: A;}letb: B={}asany;b.a.some!;// error? some
Because you have asserted it to be non-null and an index signature tells that A can contain more props than what is defined in A. It makes sense to let people assert non-null in those cases.
The text was updated successfully, but these errors were encountered:
I think the following code should work:
Because you have asserted it to be non-null and an index signature tells that
A
can contain more props than what is defined inA
. It makes sense to let people assert non-null in those cases.The text was updated successfully, but these errors were encountered: