docs: expand input and output object types in API signatures
This commit is contained in:
@@ -21,7 +21,7 @@ Attaches a file to an existing manifest.
|
||||
|
||||
**Returns**
|
||||
|
||||
`Promise<object>` — The created attachment record.
|
||||
`Promise<{id: number, manifestId: number, fileId: number, mimetype: string, name: string}>` — The created attachment record.
|
||||
|
||||
**Throws**
|
||||
|
||||
@@ -54,7 +54,7 @@ Gets an attachment for a manifest by its attachment ID or file ID, including ful
|
||||
|
||||
**Returns**
|
||||
|
||||
`Promise<object>` — The attachment record with binary content.
|
||||
`Promise<{id: number, manifestId: number, fileId: number, mimetype: string, name: string, content: Buffer}>` — The attachment record with binary content.
|
||||
|
||||
**Throws**
|
||||
|
||||
@@ -82,7 +82,7 @@ Lists all attachments for a given manifest, without loading their full binary co
|
||||
|
||||
**Returns**
|
||||
|
||||
`Promise<Array<object>>` — A list of attachment metadata objects.
|
||||
`Promise<Array<{id: number, manifestId: number, fileId: number, mimetype: string, name: string, size: number}>>` — A list of attachment metadata objects.
|
||||
|
||||
**Throws**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user