kopia lustrzana https://github.com/Tldraw/Tldraw
For now we don't need to use all of them.
rodzic
999a33d4ec
commit
dfc5ceae21
|
@ -2194,7 +2194,7 @@ export interface TLErrorBoundaryProps {
|
|||
|
||||
// @public (undocumented)
|
||||
export type TLErrorEvent = {
|
||||
type: TLEditorErrorType;
|
||||
type: 'max-shapes-reached';
|
||||
value: [{
|
||||
count: number;
|
||||
name: string;
|
||||
|
|
|
@ -23,6 +23,7 @@ export const EditorResult = {
|
|||
}
|
||||
|
||||
// All errors
|
||||
/** @public */
|
||||
export type TLEditorErrorType = CreateShapeErrorType | (typeof READONLY_ROOM_ERROR)['type']
|
||||
|
||||
// General errors
|
||||
|
|
|
@ -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 }]
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue