I am attempting to use a third party family tree library (react-family-tree) in my React TypeScript project.
The family tree wants an array with among other values, a value in the Gender type from its dependency library relatives-tree
I have imported the library like so:
import ReactFamilyTree from 'react-family-tree';
And am attempting to create the Gender type in the array with the below code:
var ancestorsFormatted: Array<{ id: number, gender: Gender, parents: {id: number}[], children: {id: number}[], spouse: {id: number}[]}> = [];
However, I am given the error of Cannot find name 'Gender'
I thought that importing this library would also make its types usable, do I also need to import the dependency library? I tried doing so with a variety of syntaxes but it is not recognized.