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
so then a custom class with getValue method can be easily used as
classCustomThing{privatereadonlyfirst: Impulse<number>privatereadonlysecond: Impulse<number>publicgetValue(scope: Scope): number{returnthis.first.getValue(scope)+this.second.getValue(scope)}}constx=newCustomThing()constvalue=useScoped(x)// works fine
The text was updated successfully, but these errors were encountered:
The idea is to be able to work with any interface/class that extends/implements the following interface
so then a custom class with
getValue
method can be easily used asThe text was updated successfully, but these errors were encountered: