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
Work on #64145 has revealed a potential issue in our framework.
We currently use any instead of unknown throughout all types which interact with solutions - this has the potential of breaking the typing in solutions without them knowing and makes it harder to interact with our framework as manual conversions are forced on anyone using the framework and due to any's permissive nature it can actually cause solutions' code to typecheck incorrectly.
Changing the any to unknown will prevent the permissive typechecking issues, but will still require manual conversions and will require fixing all solutions already integrated.
It's worth investigating the use of generics as that will allow us to default to any, which means we won't break existing usage`, but that will offer solutions the option of using generics to get the exact type they expect to get and not need to typecheck or convert themselves.
The text was updated successfully, but these errors were encountered:
It's worth noting that in order for this to work well we probably want to add generics in TaskManager as well so that you can specify the type there and remove the current use of any too.
Work on #64145 has revealed a potential issue in our framework.
We currently use
any
instead ofunknown
throughout all types which interact with solutions - this has the potential of breaking the typing in solutions without them knowing and makes it harder to interact with our framework as manual conversions are forced on anyone using the framework and due toany
's permissive nature it can actually cause solutions' code to typecheck incorrectly.Changing the
any
tounknown
will prevent the permissive typechecking issues, but will still require manual conversions and will require fixing all solutions already integrated.It's worth investigating the use of generics as that will allow us to default to
any
, which means we won't break existing usage`, but that will offer solutions the option of using generics to get the exact type they expect to get and not need to typecheck or convert themselves.The text was updated successfully, but these errors were encountered: