MCPcopy Create free account
hub / github.com/experdot/pointer / ExportActions

Interface ExportActions

src/renderer/src/features/export/types.ts:252–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252export interface ExportActions {
253 // Source actions
254 setSourceType: (type: SourceType) => void
255 setSourceData: (data: SourceData) => void
256
257 // Format actions
258 setFormatType: (type: FormatType) => void
259 updateExportOptions: (options: Partial<ExportOptions>) => void
260
261 // Preview actions
262 updatePreviewOptions: (options: Partial<PreviewOptions>) => void
263 generatePreview: () => Promise<void>
264 setPreviewContainerElement: (element: HTMLDivElement | null) => void
265
266 // Edit actions
267 setEditedContent: (content: string | Blob) => void
268 enterEditMode: () => void
269 exitEditMode: () => void
270 confirmOverwrite: () => void
271
272 // Export actions
273 doExport: () => Promise<void>
274 copyToClipboard: () => Promise<void>
275 downloadImage: () => Promise<void>
276 copyImageToClipboard: () => Promise<void>
277
278 // Reset
279 reset: () => void
280}
281
282export type ExportStore = ExportState & ExportActions
283

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected