Public typealias

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

TLContent

Source

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

TLExternalContentTLGridProps