-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add bulk actions #36
Add bulk actions #36
Conversation
Generate changelog in
|
? modifiedObjects.join(" | ") | ||
: "void" | ||
}>>, ActionError>>;`, | ||
${action.apiName}<P extends ${interiorParameters} | ${interiorParameters}[],O extends P extends ${interiorParameters}[]? BulkActionExecutionOptions: ActionExecutionOptions>( |
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, I made the O generic something like O extends BulkActionExecutionOptions | ActionExecutionOptions
, which it seemed to like, but I wasn't able to test if that would still enforce our internal argument constraints because I got blocked on another type issue below
}>>, ActionError>>;`, | ||
${action.apiName}<P extends ${interiorParameters} | ${interiorParameters}[],O extends P extends ${interiorParameters}[]? BulkActionExecutionOptions: ActionExecutionOptions>( | ||
params:P ,options?: O): | ||
Promise<Result<P extends ${interiorParameters}[] ? BulkActionResponseFromOptions<O,Edits<${ |
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.
This also gave an issue because of the conditional with P extends
, it couldn't tell what options to use
options?: Op, | ||
) => WrappedActionReturnType<O, A, Op>; | ||
: | ||
& (< |
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.
The &s seemed to work here
Decided to take a different approach and put bulkActions at top level instead: #53 |
No description provided.