* 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>
24 lines
402 B
TypeScript
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[];
|
|
};
|