leva icon indicating copy to clipboard operation
leva copied to clipboard

`onChange` has no type inferred

Open sylee957 opened this issue 1 year ago • 0 comments

https://codesandbox.io/s/tender-austin-7lxpzx?file=/src/App.tsx

I get (parameter) e: any from

const App = () => {
  useControls({
    test: {
      value: true,
      onChange: (e) => console.log(e)
    }
  });
  return null;
};

How can I get the the type of events for onChange?

sylee957 avatar Aug 18 '23 02:08 sylee957