Skip to content

Typescript is not correct on embed/Editor #454

@permlap-phola

Description

@permlap-phola
declare module "embed/Editor" {
   .....
    export class Editor {
      .....
        registerTool(): void;
        registerPropertyEditor(): void;
        registerTab(): void;
        createPanel(): void;
        createViewer(): void;
  /**
  * Creates a widget with custom render and mount functions.
  *
  * @param data - An object containing the render and mount functions for the widget.
  */
  createWidget(): void;

    }
}

register tool, registerPropertyEditor,createPanel,createViewer and createWidget expected to have an arguments, but it doesn't provide in here

https://docs.unlayer.com/builder/tools/custom/create#register-your-tool

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