You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What part(s) of the article would you like to see updated?
These docs use a string union "free" | "horizontal" | "vertical" as the type, but internally we're using a PanOnScrollMode enum. Enums are nominal in typescript so attempting to set things as a string directly, although valid javascript, won't type check.
We should update the documentation and also add the enum to the documented types.
Additional information
No response
The text was updated successfully, but these errors were encountered:
Code of Conduct
Which site are you suggesting a change for?
reactflow.dev
What content is affected by this change?
/api-reference/react-flow#pan-on-scroll
What part(s) of the article would you like to see updated?
These docs use a string union
"free" | "horizontal" | "vertical"
as the type, but internally we're using aPanOnScrollMode
enum. Enums are nominal in typescript so attempting to set things as a string directly, although valid javascript, won't type check.We should update the documentation and also add the enum to the documented types.
Additional information
No response
The text was updated successfully, but these errors were encountered: