pmndrs / leva

🌋 React-first components GUI
https://leva.pmnd.rs
MIT License
5.05k stars 202 forks source link

`onChange` has no type inferred #470

Open sylee957 opened 1 year ago

sylee957 commented 1 year ago

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?