Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Excerpt
namePopularQueriesContent
Code Block
languagetypescript
interface PopularQueriesContentItem {
    query: string;
    count: number;
    weight: number;
}

Code Block
languagetypescript
interface PopularQueriesContent extends ContentType {
    type: 'popular-queries';
    items: Array<PopularQueriesContentItem>;
}

Custom Widgets

Excerpt
nameCustomWidgets
Code Block
languagetypescript
interface CustomWidgetContent extends ContentType {
    type: 'custom-widget';
    data: any;
}

Content Zones

Excerpt
nameContentZones
Code Block
languagetypescript
interface ContentZoneItem {
    mobile: ContentType;
    tablet: ContentType;
    desktop: ContentType;
}

Code Block
languagetypescript
interface ContentZone {
    name: string;
    items: Array<ContentZoneItem>;
}

...