jan/web/app/_models/ProductInput.ts
2023-10-20 11:29:10 +07:00

24 lines
387 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[]
}