diff --git a/packages/editor/api-report.md b/packages/editor/api-report.md index 78f34f08a..504f2373c 100644 --- a/packages/editor/api-report.md +++ b/packages/editor/api-report.md @@ -2194,7 +2194,7 @@ export interface TLErrorBoundaryProps { // @public (undocumented) export type TLErrorEvent = { - type: TLEditorErrorType; + type: 'max-shapes-reached'; value: [{ count: number; name: string; diff --git a/packages/editor/src/lib/editor/types/editor-result-types.ts b/packages/editor/src/lib/editor/types/editor-result-types.ts index 1679fae3d..acbeaba18 100644 --- a/packages/editor/src/lib/editor/types/editor-result-types.ts +++ b/packages/editor/src/lib/editor/types/editor-result-types.ts @@ -23,6 +23,7 @@ export const EditorResult = { } // All errors +/** @public */ export type TLEditorErrorType = CreateShapeErrorType | (typeof READONLY_ROOM_ERROR)['type'] // General errors diff --git a/packages/editor/src/lib/editor/types/emit-types.ts b/packages/editor/src/lib/editor/types/emit-types.ts index 9cb20ab1e..ea33c2073 100644 --- a/packages/editor/src/lib/editor/types/emit-types.ts +++ b/packages/editor/src/lib/editor/types/emit-types.ts @@ -1,11 +1,10 @@ import { HistoryEntry } from '@tldraw/store' import { TLPageId, TLRecord, TLShapeId } from '@tldraw/tlschema' -import { TLEditorErrorType } from './editor-result-types' import { TLEventInfo } from './event-types' /** @public */ export type TLErrorEvent = { - type: TLEditorErrorType + type: 'max-shapes-reached' value: [{ name: string; pageId: TLPageId; count: number }] }