refactor: เพิ่ม type
This commit is contained in:
parent
e45f55f4e3
commit
382ebe6e06
1 changed files with 7 additions and 0 deletions
|
|
@ -5,6 +5,13 @@ export type ServiceAndProduct =
|
||||||
| (Service & { type: 'service' })
|
| (Service & { type: 'service' })
|
||||||
| (ProductList & { type: 'product' });
|
| (ProductList & { type: 'product' });
|
||||||
|
|
||||||
|
export interface TreeProduct {
|
||||||
|
name: string;
|
||||||
|
id: string;
|
||||||
|
code: string;
|
||||||
|
type?: 'group' | 'type';
|
||||||
|
}
|
||||||
|
|
||||||
export interface Service {
|
export interface Service {
|
||||||
productTypeId: string;
|
productTypeId: string;
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue