For now we don't need to use all of them.

mitja/return-results
Mitja Bezenšek 2024-04-26 15:57:34 +02:00
rodzic 999a33d4ec
commit dfc5ceae21
3 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -2194,7 +2194,7 @@ export interface TLErrorBoundaryProps {
// @public (undocumented)
export type TLErrorEvent = {
type: TLEditorErrorType;
type: 'max-shapes-reached';
value: [{
count: number;
name: string;

Wyświetl plik

@ -23,6 +23,7 @@ export const EditorResult = {
}
// All errors
/** @public */
export type TLEditorErrorType = CreateShapeErrorType | (typeof READONLY_ROOM_ERROR)['type']
// General errors

Wyświetl plik

@ -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 }]
}