@atlaskit/editor-common
Version:
A package that contains common classes and components for editor and renderer
14 lines (13 loc) • 564 B
TypeScript
/**
* Allow any additional custom metadata to be attached to experience events.
*/
export type CustomExperienceMetadata = {
[key: string]: string | number | boolean | CustomExperienceMetadata | undefined;
};
/**
* Represents the state of an experience throughout its lifecycle.
*/
export type ExperienceState = 'pending' | 'started' | 'aborted' | 'failed' | 'succeeded';
declare const EXPERIENCE_IDS: ('asyncOperation' | 'menuAction' | 'menuOpen' | 'toolbarAction' | 'toolbarOpen')[];
export type ExperienceId = (typeof EXPERIENCE_IDS)[number];
export {};