UNPKG

@vanakaru/ekilex-api-client

Version:

A node api client for the Ekilex API

19 lines 601 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Paradigms = void 0; const http_client_1 = require("../http/http-client"); class Paradigms { constructor(httpClient) { this.httpClient = httpClient; } getDetails(wordId) { const sanitizedWordId = encodeURIComponent(wordId); const request = { method: http_client_1.Method.Get, path: `paradigm/details/${sanitizedWordId}`, }; return this.httpClient.request(request); } } exports.Paradigms = Paradigms; //# sourceMappingURL=paradigms.js.map