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
One of type casts should provide ModuleScope type to the scope variable, but it only provides base Scope in any case.
Actual behavior:
src/test.ts:33:15 - error TS2339: Property 'myKey' does not exist on type 'S'.
33 scope.myKey = '123';
~~~~~
src/test.ts:40:15 - error TS2339: Property 'myKey' does not exist on type 'S'.
40 scope.myKey = '123';
~~~~~
src/test.ts:47:15 - error TS2339: Property 'myKey' does not exist on type 'S'.
47 scope.myKey = '123';
~~~~~
TypeScript Version: 3.2.2
Search Terms:
Code
Expected behavior:
One of type casts should provide
ModuleScope
type to thescope
variable, but it only provides baseScope
in any case.Actual behavior:
Playground Link:
https://goo.gl/4kQHBW
Related Issues:
Didn't find any.
The text was updated successfully, but these errors were encountered: