-
-
Notifications
You must be signed in to change notification settings - Fork 185
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
rework action #96
rework action #96
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/timc/kbar/EgdGirZnGMF5bR4HvEqcrfXHMpZW |
src/types.ts
Outdated
export interface Action { | ||
id: string; | ||
name: string; | ||
shortcut: string[]; | ||
keywords: string; | ||
keywords?: string; | ||
shortcut?: string[]; | ||
perform?: () => void; | ||
section?: string; | ||
parent?: ActionId | null | undefined; | ||
children?: ActionId[]; | ||
children?: ActionImpl[]; | ||
icon?: string | React.ReactElement | React.ReactNode; | ||
subtitle?: string; | ||
} |
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.
Todo: cleanup types so that it is clear what users need to define themselves, and what is handled implicitly.
429b4fd
to
5eee869
Compare
e0e26c7
to
ee6bbb0
Compare
ee6bbb0
to
db56019
Compare
See #103 |
Closes #62.
Rework actions into a separate object so we can keep logic for manipulating actions within a single interface.
This will make: