UNPKG

@goteborgco/open-api-js-client

Version:

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

28 lines (27 loc) 900 B
export declare class CurrentInTime { readonly months: number[]; readonly weekdays: number[]; constructor(data: any); /** * Check if a specific month is included * @param month Month number (1-12) * @returns boolean indicating if the month is included */ hasMonth(month: number): boolean; /** * Check if a specific weekday is included * @param weekday Weekday number (0-6, where 0 is Sunday) * @returns boolean indicating if the weekday is included */ hasWeekday(weekday: number): boolean; /** * Check if current date matches the time pattern * @returns boolean indicating if current date matches */ isCurrentlyActive(): boolean; /** * Get formatted schedule string * @returns Formatted schedule string or undefined if no schedule exists */ getFormattedSchedule(): string | undefined; }