observation-js
Version:
A fully-typed TypeScript client for the waarneming.nl API.
19 lines (18 loc) • 649 B
TypeScript
import type { ObservationClient } from '../core/client';
import type { Country, Paginated } from '../types';
export declare class Countries {
#private;
/**
* @internal
*/
constructor(client: ObservationClient);
/**
* Fetches a paginated list of all countries.
* The names of the countries will be returned in the language set on the client (default: 'en').
* This is a public endpoint and does not require authentication.
*
* @returns A promise that resolves to a paginated list of country objects.
* @throws {ApiError} If the request fails.
*/
list(): Promise<Paginated<Country>>;
}