-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: missconfigured SectionCardBackgroundIntercalated.d.ts
- Loading branch information
1 parent
642f9cc
commit 28dd0a0
Showing
1 changed file
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<SectionCardBackgroundIntercalatedProps, SectionCardBackgroundIntercalatedSlots, SectionCardBackgroundIntercalatedEmits> { } | ||
|
||
declare module 'vue' { | ||
export interface GlobalComponents { | ||
SectionCardBackgroundIntercalated: GlobalComponentConstructor<SectionCardBackgroundIntercalated>; | ||
} | ||
} | ||
|
||
export default SectionCardBackgroundIntercalated; |