From 28dd0a05e658aa50bf62a25296862882b48e13e3 Mon Sep 17 00:00:00 2001 From: Robson Junior Date: Wed, 2 Oct 2024 14:09:20 -0300 Subject: [PATCH] fix: missconfigured SectionCardBackgroundIntercalated.d.ts --- .../SectionCardBackgroundIntercalated.d.ts | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/src/templates/sectioncardbackgroundintercalated/SectionCardBackgroundIntercalated.d.ts b/src/templates/sectioncardbackgroundintercalated/SectionCardBackgroundIntercalated.d.ts index e69de29b..28e43f6c 100644 --- a/src/templates/sectioncardbackgroundintercalated/SectionCardBackgroundIntercalated.d.ts +++ b/src/templates/sectioncardbackgroundintercalated/SectionCardBackgroundIntercalated.d.ts @@ -0,0 +1,77 @@ +/** + * + * SectionCardBackgroundIntercalated + * + * + * @module `sectioncardbackgroundintercalated` + */ +import { VNode } from 'vue'; +import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; + +type HeroType = { + "title": string, + "description": string, + "image": string, + "buttons": Array<[ + { + "label": string, + "link": string + } + ]> +} + +type CardsType = { + "cards": { + "title": string, + "description": string, + "cards": Array<[ + { + "label": string, + "title": string, + "image": string, + "alt": string + } + ]> + } +} + +/** + * Defines valid properties in SectionCardBackgroundIntercalated component. + */ +export interface SectionCardBackgroundIntercalatedProps { + hero: HeroType; + cards: CardsType; +} + +/** + * Defines valid slots in SectionCardBackgroundIntercalated component. + */ +export interface SectionCardBackgroundIntercalatedSlots { + /** + * Content can easily be customized with the default slot instead of using the built-in modes. + */ + default(): VNode[]; +} + +/** + * Defines valid emits in SectionCardBackgroundIntercalated component. + */ +export interface SectionCardBackgroundIntercalatedEmits { + /** + * Triggered when an error occurs + */ + error(event: Event): void; +} + +/** + * @group Component + */ +declare class SectionCardBackgroundIntercalated extends ClassComponent { } + +declare module 'vue' { + export interface GlobalComponents { + SectionCardBackgroundIntercalated: GlobalComponentConstructor; + } +} + +export default SectionCardBackgroundIntercalated;