Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Fix menu onSelect type #2521

Merged
merged 5 commits into from
Jan 12, 2023
Merged

Fix menu onSelect type #2521

merged 5 commits into from
Jan 12, 2023

Conversation

lorgan3
Copy link
Contributor

@lorgan3 lorgan3 commented Jan 10, 2023

Description

Small fix and improvement: The type for Menu onSelect was incorrect.
I've also updated the type of selected so it should be inferred instead of always being any.

Screenshot before this PR

N/a

Screenshot after this PR

N/a

Breaking changes

N/a

I can't make it infer the type at that point. The return type should be equivalent to what it was before
@lorgan3 lorgan3 self-assigned this Jan 10, 2023
@lorgan3 lorgan3 changed the title Fix menu value type Fix menu onSelect type Jan 10, 2023
@lorgan3 lorgan3 marked this pull request as ready for review January 10, 2023 09:03
@lorgan3 lorgan3 merged commit 2731cbc into next-release Jan 12, 2023
@lorgan3 lorgan3 deleted the fix-menu-value-type branch January 12, 2023 08:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants