Public typealias

Signature
type TLExternalContent = {
  sources?: TLExternalContentSource[]
  point?: VecLike
} & (
  | {
      type: 'embed'
      url: string
      embed: EmbedDefinition
    }
  | {
      type: 'files'
      files: File[]
      ignoreParent: boolean
    }
  | {
      type: 'svg-text'
      text: string
    }
  | {
      type: 'text'
      text: string
    }
  | {
      type: 'url'
      url: string
    }
)
References

TLExternalContentSource, VecLike, EmbedDefinition

Source

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

TLExternalAssetContentTLExternalContentSource