-
Notifications
You must be signed in to change notification settings - Fork 22
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
Interface support in actions #1085
Conversation
packages/api/src/actions/Actions.ts
Outdated
* Helper type to convert action definition parameter interface types to typescript types | ||
*/ | ||
export type InterfaceType<T extends InterfaceDefinition> = { | ||
$objectType: 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.
So, we now get a list of objects that implement an interface that we theoretically could use to limit the object types you can pass in here. But, there's a chance that someone implements this interface with a new object type we won't know about after codegen
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.
Mostly good. I wonder what our options are for getting better checks that the type implements the interface?
Invalidated by push of 92fb73f
Actions can now take interface params