@open-tender/store
Version:
A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API
13 lines (12 loc) • 438 B
TypeScript
import { Employee, Punch } from '@open-tender/types';
import { ModalState } from '../slices';
declare const usePunch: (api: any) => {
submit: (employee: Employee, blockPin: boolean) => void;
send: (data: Punch, employee: Employee) => Promise<void>;
print: (employeeId: number) => Promise<void>;
error: string | null;
msg: string | null;
modal: ModalState | null;
reset: () => void;
};
export default usePunch;