cms.nicwands.com/types/generated/components.d.ts
2026-06-16 13:50:35 -04:00

73 lines
1.7 KiB
TypeScript

import type { Schema, Struct } from '@strapi/strapi';
export interface GlobalCopy extends Struct.ComponentSchema {
collectionName: 'components_global_copies';
info: {
displayName: 'Copy';
icon: 'bold';
};
attributes: {
content: Schema.Attribute.Blocks;
};
}
export interface GlobalDescriptiveList extends Struct.ComponentSchema {
collectionName: 'components_global_descriptive_lists';
info: {
displayName: 'Descriptive List';
icon: 'bulletList';
};
attributes: {
content: Schema.Attribute.Blocks;
label: Schema.Attribute.String;
};
}
export interface GlobalLink extends Struct.ComponentSchema {
collectionName: 'components_global_links';
info: {
displayName: 'Link';
icon: 'exit';
};
attributes: {
text: Schema.Attribute.String;
url: Schema.Attribute.String;
};
}
export interface GlobalMedia extends Struct.ComponentSchema {
collectionName: 'components_global_media';
info: {
displayName: 'Media';
icon: 'landscape';
};
attributes: {
image: Schema.Attribute.Media<'images'> & Schema.Attribute.Required;
video: Schema.Attribute.Media<'videos'>;
};
}
export interface GlobalSeo extends Struct.ComponentSchema {
collectionName: 'components_global_seos';
info: {
displayName: 'SEO';
icon: 'filter';
};
attributes: {
description: Schema.Attribute.Text;
image: Schema.Attribute.Media<'images'>;
title: Schema.Attribute.String;
};
}
declare module '@strapi/strapi' {
export module Public {
export interface ComponentSchemas {
'global.copy': GlobalCopy;
'global.descriptive-list': GlobalDescriptiveList;
'global.link': GlobalLink;
'global.media': GlobalMedia;
'global.seo': GlobalSeo;
}
}
}