Closed xiduzo closed 1 week ago
Not of all blades have .on()
. See the Blades section:
If you are a TypeScript user, need to cast a created blade to a specific type to access full functionalities: https://tweakpane.github.io/docs/blades/
Thanks, I missed that from the docs. My bad.
But can't this be inferred by the view
of the blade itself?
But can't this be inferred by the view of the blade itself?
It's difficult because .addBlade()
can be extended by adding plugins.
https://tweakpane.github.io/docs/plugins/
the type bring me to
node_modules/core/dist/blade/common/api/blade.d.ts
which I assume gets generated from https://github.com/cocopon/tweakpane/blob/main/packages/core/src/blade/common/api/blade.ts