Skip to content

Return type of public static method from exported class has or is using private name 'BaseWithPlugins' #1

Closed
@gr2m

Description

@gr2m

running tsc index.ts --declaration currently throws an error

> tsc index.ts --declaration

index.ts:25:10 - error TS4052: Return type of public static method from exported class has or is using private name 'BaseWithPlugins'.

25   static plugin<T extends TestPlugin | TestPlugin[]>(plugin: T) {
            ~~~~~~

I'm not sure how to fix that problem yet, help much appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is neededreleased

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions