UNPKG

wordnik-api

Version:

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

18 lines (17 loc) 491 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Describes a related word. */ class RelatedWord { /** * RelatedWord Constructor * @param relationshipType {RelationshipType} The relationship type of the related word * @param words {string[]} The words that are related */ constructor(relationshipType, words) { this.relationshipType = relationshipType; this.words = words; } } exports.default = RelatedWord;