-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor ToolbarContext to TS #49002
Refactor ToolbarContext to TS #49002
Conversation
const ToolbarContext = createContext< ToolbarStateReturn | undefined >( | ||
undefined | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ToolbarStateReturn
was used for this generic as it is the inferred type for toolbarState
.
Please refer to ToolbarContainer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me as well 🚀
What?
Part of #35744.
Why?
This PR is needed as part of an effort to convert Toolbar and related Toolbar subcomponents to TypeScript.
How?
By converting
ToolbarContext
to TypeScript.