46 lines
1.1 KiB
TypeScript
46 lines
1.1 KiB
TypeScript
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;
|
|
}
|
|
}
|
|
}
|