wordnik-api
Version:
Community API for https://wordnik.com with types
19 lines (15 loc) • 479 B
text/typescript
import { RelationshipType } from "../struct/RelationshipType";
/**
* Describes a related word.
*/
export default class RelatedWord {
/**
* RelatedWord Constructor
* @param relationshipType {RelationshipType} The relationship type of the related word
* @param words {string[]} The words that are related
*/
public constructor(
public readonly relationshipType: RelationshipType,
public readonly words: string[],
) {}
}