Skip to content

BUG: Incorrect embed/Edito TypeScript #464

@permlap-phola

Description

@permlap-phola
node_modules\unlayer-types\embed.d.ts
declare module "embed/Editor" {
   ......
    export class Editor {
        ......
        registerTool(): void; //expect arguments
        registerPropertyEditor(): void; //expect arguments
        registerTab(): void; //expect arguments
        createPanel(): void; //expect arguments
        createViewer(): void; //expect arguments
        createWidget(): void; //expect arguments
    }
}

these function method define typescript incorrectly according to the doc
https://docs.unlayer.com/builder/tools/custom#properties

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions