chore: 更新directus类型标注
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m6s
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m6s
- 更新types/directus/my-schema.ts
This commit is contained in:
@ -60,6 +60,7 @@ export interface ProductDocument {
|
|||||||
id: number;
|
id: number;
|
||||||
status?: 'published' | 'draft' | 'archived';
|
status?: 'published' | 'draft' | 'archived';
|
||||||
file?: DirectusFile | string | null;
|
file?: DirectusFile | string | null;
|
||||||
|
products?: ProductsProductDocument[] | string[];
|
||||||
translations?: ProductDocumentsTranslation[] | null;
|
translations?: ProductDocumentsTranslation[] | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -152,10 +153,10 @@ export interface Product {
|
|||||||
/** @description i18n字段 */
|
/** @description i18n字段 */
|
||||||
translations?: ProductsTranslation[] | null;
|
translations?: ProductsTranslation[] | null;
|
||||||
faqs?: ProductsQuestion[] | string[];
|
faqs?: ProductsQuestion[] | string[];
|
||||||
|
documents?: ProductsProductDocument[] | string[];
|
||||||
/** @description 在产品详情页中展示 */
|
/** @description 在产品详情页中展示 */
|
||||||
images?: ProductsProductImage[] | string[];
|
images?: ProductsProductImage[] | string[];
|
||||||
specs?: ProductSpecGroup[] | string[];
|
specs?: ProductSpecGroup[] | string[];
|
||||||
documents?: ProductsProductDocument[] | string[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ProductsProductDocument {
|
export interface ProductsProductDocument {
|
||||||
|
|||||||
Reference in New Issue
Block a user