Skip to content
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

Merged
merged 11 commits into from
Jan 27, 2025
Merged

Interface support in actions #1085

merged 11 commits into from
Jan 27, 2025

Conversation

ssanjay1
Copy link
Contributor

Actions can now take interface params

* Helper type to convert action definition parameter interface types to typescript types
*/
export type InterfaceType<T extends InterfaceDefinition> = {
$objectType: string;
Copy link
Contributor Author

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

Copy link
Member

@ericanderson ericanderson left a 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?

ericanderson
ericanderson previously approved these changes Jan 27, 2025
@policy-bot policy-bot bot dismissed ericanderson’s stale review January 27, 2025 17:17

Invalidated by push of 92fb73f

@ssanjay1 ssanjay1 merged commit 03f95eb into main Jan 27, 2025
8 checks passed
@ssanjay1 ssanjay1 deleted the ssanjay/interfaceActions branch January 27, 2025 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants