UNPKG

@herongxhr/sayhi

Version:

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

14 lines (13 loc) 373 B
import { GreetingOptions } from "./types"; export declare class GreetingGenerator { private locale; private languages; private language; private timeSlots; constructor(options?: GreetingOptions); private getCurrentDate; private getDayOfWeek; private getCurrentTimeSlot; generateGreeting(): string; setLocale(locale: string): void; }