observation-js
Version:
A fully-typed TypeScript client for the waarneming.nl API.
20 lines (19 loc) • 680 B
TypeScript
import type { ObservationClient } from '../core/client';
import type { Lookups as LookupsType } from '../types';
export declare class Lookups {
#private;
/**
* @internal
*/
constructor(client: ObservationClient);
/**
* Fetches all lookup tables from the API.
* Lookup tables contain constant values used throughout the API,
* such as validation statuses, rarities, counting methods, etc.
* This is a public endpoint and does not require authentication.
*
* @returns A promise that resolves to an object containing all lookup tables.
* @throws {ApiError} If the request fails.
*/
get(): Promise<LookupsType>;
}