Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

513 B
Raw Blame
export const MARKETPLACE_IMAGE_PREVIEW_MESSAGE = 'dify-marketplace:image-preview'

export type MarketplaceImagePreviewMessage = {
  type: typeof MARKETPLACE_IMAGE_PREVIEW_MESSAGE
  open: boolean
}

export function isMarketplaceImagePreviewMessage(
  data: unknown,
): data is MarketplaceImagePreviewMessage {
  return (
    typeof data === 'object' &&
    data !== null &&
    'type' in data &&
    data.type === MARKETPLACE_IMAGE_PREVIEW_MESSAGE &&
    'open' in data &&
    typeof data.open === 'boolean'
  )
}