readonly unmount:()

in src/plugin/types.ts [120:128]


  readonly unmount: () => void
  readonly updateContext: (context: PluginContext) => void
  // there's no better way to type a generic React component
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
  replaceContent(content: string | HTMLElement | React.ComponentType<any>): void
  registerEventHandler(element: HTMLElement, event: string, callback: () => unknown): void
}

export interface PluginRegistry {