UNPKG

@goteborgco/open-api-js-client

Version:

Official JavaScript client for the Göteborg & Co GraphQL API

37 lines (36 loc) 976 B
import { WpEntity } from './WpEntity'; export declare class Related { readonly places?: WpEntity[]; readonly guides?: WpEntity[]; readonly events?: WpEntity[]; constructor(data: any); /** * Get related places * @returns Array of related places or undefined */ getPlaces(): WpEntity[] | undefined; /** * Get related guides * @returns Array of related guides or undefined */ getGuides(): WpEntity[] | undefined; /** * Get related events * @returns Array of related events or undefined */ getEvents(): WpEntity[] | undefined; /** * Get all related content * @returns Object containing all related content */ getAllRelated(): { places?: WpEntity[]; guides?: WpEntity[]; events?: WpEntity[]; }; /** * Check if there is any related content * @returns Whether there is any related content */ hasRelatedContent(): boolean; }