holidayapi-node/dist/holidayapi.d.ts
Josh Sherman fb903a8532
feat: port to typescript
* 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.
2019-09-09 22:20:39 -05:00

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>;
}