Skip to content

Commit

Permalink
feat(type): order
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm authored and AliMD committed Jan 8, 2023
1 parent 2ec02dc commit 79426ea
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions core/type/src/order.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import type {AlwatrDocumentObject} from './storage.js';
import type {User} from './user.js';

export type Order = AlwatrDocumentObject & {
user: User;
detail: OrderDetail;
itemList: Array<ProductValue>;
};

export type OrderDetail = {
description: string;
};

export type Product = AlwatrDocumentObject & {
name: string;
description: string;
price: number;
};

export type ProductValue = Product & {
value: number;
};

0 comments on commit 79426ea

Please sign in to comment.