add content, add swagger
This commit is contained in:
45
types/generated/components.d.ts
vendored
Normal file
45
types/generated/components.d.ts
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
import type { Schema, Struct } from '@strapi/strapi';
|
||||
|
||||
export interface SectionsHomeHero extends Struct.ComponentSchema {
|
||||
collectionName: 'components_sections_home_heroes';
|
||||
info: {
|
||||
displayName: 'HomeHero';
|
||||
};
|
||||
attributes: {
|
||||
badge: Schema.Attribute.String;
|
||||
description: Schema.Attribute.Text;
|
||||
stats: Schema.Attribute.Component<'shared.attribute', true>;
|
||||
title: Schema.Attribute.String;
|
||||
};
|
||||
}
|
||||
|
||||
export interface SharedAttribute extends Struct.ComponentSchema {
|
||||
collectionName: 'components_shared_attributes';
|
||||
info: {
|
||||
displayName: 'Attribute';
|
||||
};
|
||||
attributes: {
|
||||
key: Schema.Attribute.String;
|
||||
value: Schema.Attribute.String;
|
||||
};
|
||||
}
|
||||
|
||||
export interface SharedProduct extends Struct.ComponentSchema {
|
||||
collectionName: 'components_shared_products';
|
||||
info: {
|
||||
displayName: 'Product';
|
||||
};
|
||||
attributes: {
|
||||
title: Schema.Attribute.String & Schema.Attribute.Required;
|
||||
};
|
||||
}
|
||||
|
||||
declare module '@strapi/strapi' {
|
||||
export module Public {
|
||||
export interface ComponentSchemas {
|
||||
'sections.home-hero': SectionsHomeHero;
|
||||
'shared.attribute': SharedAttribute;
|
||||
'shared.product': SharedProduct;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user