@vanakaru/ekilex-api-client
Version:
A node api client for the Ekilex API
34 lines (33 loc) • 824 B
TypeScript
import { HttpClient } from '../http/http-client';
export declare type Form = {
id: number;
paradigmId: number;
morphGroup1: string;
morphGroup2: null;
morphGroup3: null;
displayLevel: number;
morphCode: string;
morphExists: boolean;
value: string;
valuePrese: string;
components: string[];
displayForm: string;
audioFile: string;
orderBy: number;
questionable: boolean;
};
export declare type ParadigmDetails = {
id: number;
wordId: number;
wordClass: string;
comment: string | null;
inflectionTypeNr: string;
inflectionType: string;
secondary: boolean;
forms: Form[];
};
export declare class Paradigms {
private httpClient;
constructor(httpClient: HttpClient);
getDetails(wordId: number): Promise<ParadigmDetails[]>;
}