Type '{ position: string; offset: { x: number; y: number; }; }' is not assignable to type 'anchorType | undefined'.
Type '{ position: string; offset: { x: number; y: number; }; }' is not assignable to type 'anchorCustomPositionType'.
Types of property 'position' are incompatible.
Type 'string' is not assignable to type '"top" | "right" | "bottom" | "left" | "auto" | "middle"'.ts(2322)
Too me this code like quite identical to the samples in the react-xarrows's README file, so either the samples are not valid TypeScript, or more likely I'm doing something wrong but can't spot the error.
Describe the bug & Expected behavior
Consider this sample:
This causes TypeScript to complain:
Too me this code like quite identical to the samples in the react-xarrows's README file, so either the samples are not valid TypeScript, or more likely I'm doing something wrong but can't spot the error.