I think this will be similar to #11
type MyFactory = (args: any) => any;
const myFactory = () => {
const myFactory: MyFactory = (args) => args;
return myFactory;
};
jpex.factory<MyFactory>(myFactory);
this will error (at least it did for me) because the plugin will see the myFactory variable being registered, but then find the inner myFactory variable and assume that's what we're talking about, rather than the outer one.
Basically it's another scoping issue
I think this will be similar to #11
this will error (at least it did for me) because the plugin will see the
myFactoryvariable being registered, but then find the innermyFactoryvariable and assume that's what we're talking about, rather than the outer one.Basically it's another scoping issue