2
0
mirror of https://github.com/frappe/books.git synced 2024-12-22 02:49:03 +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 ModalName =
| 'Keyboard'
| 'Payment'
| 'ShiftClose'
| 'LoyaltyProgram'
| 'SavedInvoice'
| 'Alert'
| 'CouponCode'
| 'PriceList';
export const modalNames = [
'Keyboard',
'Payment',
'ShiftClose',
'LoyaltyProgram',
'SavedInvoice',
'Alert',
'CouponCode',
'PriceList',
] as const;
export type ModalName = typeof modalNames[number];
export type PosEmits =
| 'addItem'