UNPKG

wordnik-api

Version:

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

15 lines (14 loc) 483 B
import { RelationshipType } from "../struct/RelationshipType"; /** * Describes a related word. */ export default class RelatedWord { readonly relationshipType: RelationshipType; readonly words: string[]; /** * RelatedWord Constructor * @param relationshipType {RelationshipType} The relationship type of the related word * @param words {string[]} The words that are related */ constructor(relationshipType: RelationshipType, words: string[]); }