-
Notifications
You must be signed in to change notification settings - Fork 0
variable name collisions #17
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working