rhino-editor
Version:
A custom element wrapped rich text editor
15 lines (14 loc) • 672 B
TypeScript
import { LitElement } from "lit";
export declare class BaseElement extends LitElement {
static customElementRegistry: CustomElementRegistry;
static baseName: string;
static define(name?: string, ctor?: CustomElementConstructor, options?: ElementDefinitionOptions): void;
internals?: ElementInternals;
constructor();
addCustomState(state: string): void;
deleteCustomState(state: string): void;
hasCustomState(state: string): boolean | undefined;
toggleCustomState(state: string, force?: boolean): void;
}
export type Constructor = new (...args: any[]) => {};
export declare function toAnonymousClass<T extends Constructor>(klass: T): T;