@smartinvoicexyz/utils
Version:
Unified source for utility functions used across the Smart Invoice protocol.
16 lines (15 loc) • 593 B
TypeScript
import { ChangeEvent, InvoiceDetails, UseToastReturn } from '@smartinvoicexyz/types';
export declare const schemaContext: (schema: any, defaultValues: any) => {
schema: any;
isRequired: (name: string) => any;
};
export declare const getUpdatedCheckAmount: ({ e, i, invoice, previousChecked, }: {
e: ChangeEvent<HTMLInputElement>;
i: number;
previousChecked: boolean[];
invoice: Partial<InvoiceDetails>;
}) => {
updateChecked: boolean[];
updateAmount: any;
};
export declare const errorToastHandler: (label: string, error: Error, toast: UseToastReturn) => void;