@blinkk/editor
Version:
Structured content editor with live previews.
27 lines (26 loc) • 975 B
TypeScript
import { Base } from '@blinkk/selective-edit/dist/src/mixins';
import { EditorState } from '../editor/state';
export interface ProjectTypeState {
}
declare const BaseProjectTypeState_base: {
new (...args: any[]): {
_listeners?: Record<string, ((...args: any) => void)[]> | undefined;
addListener(eventName: string, callback: (...args: any) => void): void;
readonly listeners: Record<string, ((...args: any) => void)[]>;
triggerListener(eventName: string, ...args: any): void;
};
} & typeof Base;
export declare class BaseProjectTypeState extends BaseProjectTypeState_base implements ProjectTypeState {
editorState: EditorState;
/**
* Keep track of active promises to keep from requesting the same data
* multiple times.
*/
protected promises: Record<string, Promise<any>>;
constructor(editorState: EditorState);
/**
* Signal for the editor to re-render.
*/
render(): void;
}
export {};