jan/web-client/app/_models/ProductInput.ts
NamH d55a83888b
refactor: replacing mobx with jotai (#160)
* refactor: replacing mobx with jotai

Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>
Co-authored-by: Louis <louis@jan.ai>
2023-09-13 21:33:53 -07:00

24 lines
402 B
TypeScript

export interface ProductInput {
body: ItemProperties[];
slug: string;
headers: ProductHeader;
}
export type ProductHeader = {
accept: string;
contentType: string;
};
export type ItemProperties = {
name: string;
type: string;
items?: ProductBodyItem[];
example?: unknown;
description?: string;
};
export type ProductBodyItem = {
type: string;
properties: ItemProperties[];
};