2
0
mirror of https://github.com/frappe/books.git synced 2024-12-22 19:09:01 +00:00

feat: add modal names type

This commit is contained in:
AbleKSaju 2024-12-03 14:44:15 +05:30
parent 70e69e623d
commit 4637dd5518

View File

@ -8,15 +8,18 @@ export type ItemSerialNumbers = { [item: string]: string };
export type DiscountType = 'percent' | 'amount'; export type DiscountType = 'percent' | 'amount';
export type ModalName = export const modalNames = [
| 'Keyboard' 'Keyboard',
| 'Payment' 'Payment',
| 'ShiftClose' 'ShiftClose',
| 'LoyaltyProgram' 'LoyaltyProgram',
| 'SavedInvoice' 'SavedInvoice',
| 'Alert' 'Alert',
| 'CouponCode' 'CouponCode',
| 'PriceList'; 'PriceList',
] as const;
export type ModalName = typeof modalNames[number];
export type PosEmits = export type PosEmits =
| 'addItem' | 'addItem'