UNPKG

wordnik-api

Version:

Community API for https://wordnik.com with types

34 lines (33 loc) 1.07 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Example definition of a word. */ class Example { /** * Example constructor * @param provider {string} the provider of the example. * @param year {number | undefined} the year of the example. * @param rating {number} the rating of the example. * @param url {string} the url of the example. * @param word {string} the example word. * @param text {string} example text. * @param documentId {number} * @param exampleId {number} * @param title {string} * @param author {string | undefined} */ constructor(provider, year, rating, url, word, text, documentId, exampleId, title, author) { this.provider = provider; this.year = year; this.rating = rating; this.url = url; this.word = word; this.text = text; this.documentId = documentId; this.exampleId = exampleId; this.title = title; this.author = author; } } exports.default = Example;