observation-js
Version:
A fully-typed TypeScript client for the waarneming.nl API.
26 lines (25 loc) • 810 B
TypeScript
import type { ObservationClient } from '../core/client';
import type { Region, RegionType } from '../types';
export declare class Regions {
#private;
/**
* @internal
*/
constructor(client: ObservationClient);
/**
* Fetches a list of all regions.
* This is a public endpoint and does not require authentication.
*
* @returns A promise that resolves to a list of region objects.
* @throws {ApiError} If the request fails.
*/
list(): Promise<Region[]>;
/**
* Fetches a list of all region types.
* This is a public endpoint and does not require authentication.
*
* @returns A promise that resolves to a list of region type objects.
* @throws {ApiError} If the request fails.
*/
listTypes(): Promise<RegionType[]>;
}