wordnik-api
Version:
Community API for https://wordnik.com with types
34 lines (33 loc) • 1.13 kB
TypeScript
/**
* Example definition of a word.
*/
export default class Example {
readonly provider: {
id: number;
};
readonly year: number | undefined;
readonly rating: number;
readonly url: string;
readonly word: string;
readonly text: string;
readonly documentId: number;
readonly exampleId: number;
readonly title: string;
readonly author: string | undefined;
/**
* 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: {
id: number;
}, year: number | undefined, rating: number, url: string, word: string, text: string, documentId: number, exampleId: number, title: string, author: string | undefined);
}