TldrawFileParseError

Public TypeAlias

Signature
type TldrawFileParseError =
  | {
      type: 'fileFormatVersionTooNew'
      version: number
    }
  | {
      type: 'invalidRecords'
      cause: unknown
    }
  | {
      type: 'migrationFailed'
      reason: MigrationFailureReason
    }
  | {
      type: 'notATldrawFile'
      cause: unknown
    }
  | {
      type: 'v1File'
      data: any
    }
References

MigrationFailureReason

Edit this page
Last edited on 11 May 2023
TldrawFile