ASPNetCore/Next/interfaces/product.ts
2021-03-29 14:08:26 +07:00

23 lines
514 B
TypeScript

import { ProductListItem } from "../APIClient";
export interface ProductDataProps {
productID: string,
}
export interface DeleteProductProps extends ProductDataProps {
onDelete: (val) => void
}
export interface ProductListRowsProps {
products: ProductListItem[],
onDelete: (val) => void,
}
export interface ProductState {
product: ProductListItem[]
}
export interface ProductFormState {
form: {
name: string,
price: number,
},
errors: string[],
busy: boolean,
}