Skip to content

Conversation

@mjameswh
Copy link
Contributor

What was changed

  • Cleanup interceptors types
  • Add type checking on workflow completion Promises

@mjameswh mjameswh requested a review from a team as a code owner August 21, 2025 15:55
@mjameswh mjameswh changed the base branch from main to nexus-cp-2 August 21, 2025 15:55
@mjameswh mjameswh changed the title Lint: Cleanup interceptors types and add type checking on wf completion promises Cleanup interceptors types and add type checking on wf completion promises Aug 21, 2025
Base automatically changed from nexus-cp-2 to main August 21, 2025 17:00
Copy link
Contributor

@THardy98 THardy98 left a 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 /////////////////////////////////////////////////////////////////////////////////
Copy link
Contributor

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

Copy link
Contributor Author

@mjameswh mjameswh Aug 21, 2025

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 /////////////////////////////////////////////////////////////////////////////////
Copy link
Contributor

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 /////////////////////////////////////////////////////////////////////////////////////
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@mjameswh mjameswh merged commit 5473ebd into main Aug 21, 2025
50 of 54 checks passed
@mjameswh mjameswh deleted the nexus-cp-3 branch August 21, 2025 18:37
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.

3 participants