UNPKG

@herongxhr/sayhi

Version:

A framework-agnostic greeting generator based on time, date, and weekday with multi-language support

26 lines (25 loc) 597 B
export interface TimeSlot { start: number; end: number; default?: string; } export type TimeSlots = Record<string, TimeSlot>; export interface GreetingConfig { locale: string; timeSlots: TimeSlots; } export interface TimeRange { startHour: number; endHour: number; greeting: string; } export interface LanguageData { dates?: Record<string, string>; weekdays?: Record<number, string>; timeslots?: Record<string, string>; } export interface GreetingOptions { locale?: string; timeSlots?: TimeSlots; languages?: Record<string, LanguageData>; }