Skip to content

Commit 4dc24cf

Browse files
authored
Merge pull request #166 from Stackla/UGC-19276
UGC-19276: add CarouselChildren type
2 parents 1b9df5b + e80fe7a commit 4dc24cf

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.changeset/sharp-beans-change.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@stackla/widget-utils": patch
3+
---
4+
5+
Add CarouselChildren type

src/types/core/tile.ts

+17
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,26 @@ export type Tile = {
121121
title: string
122122
full_embed_html: string
123123
attrs: string[]
124+
carousel_children?: CarouselChildren[]
124125
[key: string]: undefined | object | null | string | string[] | number | number[] | boolean | TagExtended[]
125126
}
126127

128+
export type CarouselChildren = {
129+
_id?: { $id: string }
130+
id: string
131+
media: string
132+
carousel: number
133+
video: Video
134+
image: string
135+
image_thumbnail_url?: string
136+
image_l?: string
137+
image_s?: string
138+
instagram_id?: string
139+
instagram_media_type?: string
140+
tags: string[]
141+
tags_extended?: TagExtended[]
142+
}
143+
127144
export type Hotspot = {
128145
id: number
129146
x: number

0 commit comments

Comments
 (0)