MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / row

Function row

packages/kilo-chat-hooks/src/use-attachment-queue.test.ts:13–25  ·  view source on GitHub ↗
(overrides: Partial<QueuedAttachment> = {})

Source from the content-addressed store, hash-verified

11} from './use-attachment-queue';
12
13function row(overrides: Partial<QueuedAttachment> = {}): QueuedAttachment {
14 return {
15 tempId: 'tmp-1',
16 filename: 'a.png',
17 mimeType: 'image/png',
18 size: 100,
19 status: 'uploading',
20 progress: 0,
21 attachmentId: undefined,
22 error: undefined,
23 ...overrides,
24 };
25}
26
27function state(rows: QueuedAttachment[]): AttachmentQueueState {
28 return { rows };

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected