split-pane-react
split-pane-react copied to clipboard
Typescript error
I'm trying to get this to work in my vite project, I keep on getting this error:
node_modules/split-pane-react/src/SplitPane.tsx:122:46 - error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'IAxis'.
No index signature with a parameter of type 'string' was found on type 'IAxis'.
122 let distanceX = curAxis[splitAxis] - axis.current[splitAxis];
~~~~~~~~~~~~~~~~~~~~~~~