Public typealias

Signature
type TLExternalContentSource =
  | {
      type: 'error'
      data: null | string
      reason: string
    }
  | {
      type: 'excalidraw'
      data: any
    }
  | {
      type: 'text'
      data: string
      subtype: 'html' | 'json' | 'text' | 'url'
    }
  | {
      type: 'tldraw'
      data: TLContent
    }
References

TLContent

Source

packages/editor/src/lib/editor/types/external-content.ts

TLExternalContentTLGridComponent