mirror of
https://github.com/holidayapi/holidayapi-node.git
synced 2025-06-21 12:36:33 +00:00
* Wrapper was showing it's age, dated syntax, zero tests, et cetera. * Ported wrapper to Typescript. * Actually, was a full rewrite, the original interfacing was too obscure. * Added linting (Airbnb). * Rewrite includes full feature parity with the Holiday API service. * This includes support for additional endpoints and latest request parameters. * Added a ton of additional examples to the README. * Finally got testing into the mix. * Added Travis for CI and Coveralls for coverage reporting.
14 lines
510 B
TypeScript
14 lines
510 B
TypeScript
import { CountriesResponse, HolidaysResponse, HolidaysRequest, LanguagesResponse, Request } from './types';
|
|
export declare class HolidayAPI {
|
|
baseUrl: string;
|
|
key: string;
|
|
constructor({ key, version }: {
|
|
key?: string;
|
|
version?: number;
|
|
});
|
|
private createUrl;
|
|
private request;
|
|
countries(request?: Request): Promise<CountriesResponse>;
|
|
holidays(request?: HolidaysRequest): Promise<HolidaysResponse>;
|
|
languages(request?: Request): Promise<LanguagesResponse>;
|
|
}
|