Open igor-pejakovic-codaxy opened 2 years ago
Would you be interested in making a PR?
If by store.get
you mean a store in a callback method, you should be able to type that too.
void onItemClick(e: MouseEvent, { store }: Instance<PageModel & Record>) {
//store.get() should be typed here
}
This should be solved in the latest version. Please check before we close this issue.
When using a typescript controller and using the
this.store
methods, the methods with signatures (any, any) are recommended first in vscode. The simplest solution would probably be to have these declared as last definitions. This does not happen with thestore.get
method since it does not have any definitions where the parameters are of typeany