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
Currently, when creating a new action type using the setActionType function, there's no direct provision to extend the ActionType type to include the new type and options type. It would be beneficial to add the ability to extend the ActionType type, simplifying the process for developers to share custom action types.
But of course, we need to make ActionType an interface and I'm not sure it's possible at this time. I would love to contribute to this enhancement. Let me know if it's something that makes sense to create.
If something is not clear I can extend my explanation with more examples.
The text was updated successfully, but these errors were encountered:
I am using TypeScript and creating custom actions, and I too ran into this issue. I'd love to see an improvement here so that the TypeScript was cleaner.
You can see that there is a CustomActionConfig<"customType"> type. Alas, I don't see a way of importing it. And I don't see their code actually restricting the properties.
Issue
Currently, when creating a new action type using the setActionType function, there's no direct provision to extend the ActionType type to include the new type and options type. It would be beneficial to add the ability to extend the ActionType type, simplifying the process for developers to share custom action types.
Proposal
It could be nice to have something like this:
But of course, we need to make ActionType an interface and I'm not sure it's possible at this time. I would love to contribute to this enhancement. Let me know if it's something that makes sense to create.
If something is not clear I can extend my explanation with more examples.
The text was updated successfully, but these errors were encountered: