-
Notifications
You must be signed in to change notification settings - Fork 138
Cleanup interceptors types and add type checking on wf completion promises #1771
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
Conversation
THardy98
left a comment
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.
Skimmed through - assuming it's the same change from the activity client + interceptors PR.
Left a couple nits but feel free to ignore
| internals?: WorkflowInternalsInterceptor[]; | ||
| } | ||
|
|
||
| // Workflow Inbound Calls Interceptors ///////////////////////////////////////////////////////////////////////////////// |
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.
nit: comment format is not consistent with the Activity/Worker interceptor formats
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.
Well observed, but that's actually intentional. They are not the same level of separation 😉
But using section separators is a practice I just recently introduced, so it might still not be obvious yet, and it's totally possible that I've done it inconsistently elsewhere.
I'll leave as-is for now.
| readonly headers: Headers; | ||
| } | ||
|
|
||
| // Workflow Outbound Calls Interceptors ///////////////////////////////////////////////////////////////////////////////// |
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.
ditto
| /** Input for WorkflowInternalsInterceptor.dispose */ | ||
| // eslint-disable-next-line @typescript-eslint/no-empty-object-type | ||
| export interface DisposeInput {} | ||
| // Workflow Internals Interceptors ///////////////////////////////////////////////////////////////////////////////////// |
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.
ditto
What was changed