Skip to content

variable name collisions #17

@jackmellis

Description

@jackmellis

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions