EditorResult beta
TypeAlias of @v12-engine/editor
ts
export type EditorResult<T = undefined> = {
readonly ok: true;
readonly value: T;
} | {
readonly ok: false;
readonly why: string;
};What an operation of the editor gives back: what it made (value), or why it did not (why: words for the person using the editor, "There is a prefab gate already")