I am trying to fit this code on a TypeScript project, which is an adaptation of the react-custom-scrollbars.
Here is where I get lost with TypeScript, it needs type declaration for style and props, this is the one instance where I do not want TypeScript to do type checking since I know this code works, and I want to use it as a plugin.
Is there any way to deal with this type of situations?
https://codesandbox.io/s/react-hooks-with-typescript-forked-ntsfq?file=/src/index.tsx