observation-js
Version:
A fully-typed TypeScript client for the waarneming.nl API.
18 lines (17 loc) • 561 B
TypeScript
import type { ObservationClient } from '../core/client';
import type { Language, Paginated } from '../types';
export declare class Languages {
#private;
/**
* @internal
*/
constructor(client: ObservationClient);
/**
* Fetches a list of all languages supported by the API.
* This is a public endpoint and does not require authentication.
*
* @returns A promise that resolves to a paginated list of language objects.
* @throws {ApiError} If the request fails.
*/
list(): Promise<Paginated<Language>>;
}