UNPKG

xero-hero

Version:

Heroic utilities to simplify and enable your progress with the [xero-node](https://www.npmjs.com/package/xero-node) SDK.

15 lines (12 loc) 460 B
import http from 'node:http'; import { XeroClient, Attachments } from 'xero-node'; type ICreateInvoiceAttachmentParameters = { contents: Buffer; filename: string; invoiceId: string; }; declare const createInvoiceAttachment: (client: XeroClient, tenantId: string, { invoiceId, filename, contents }: ICreateInvoiceAttachmentParameters) => Promise<{ body: Attachments; response: http.IncomingMessage; }>; export { createInvoiceAttachment };