Skip to content

fix: fix typings of ITCConstructorOptions#4674

Merged
mcollina merged 1 commit intoplatformatic:mainfrom
mrazauskas:fix-types-platformatic-itc
Mar 27, 2026
Merged

fix: fix typings of ITCConstructorOptions#4674
mcollina merged 1 commit intoplatformatic:mainfrom
mrazauskas:fix-types-platformatic-itc

Conversation

@mrazauskas
Copy link
Copy Markdown
Contributor

This PR is fixing typings of the ITCConstructorOptions interface. The missing name, handlers, and throwOnMissingHandler properties got added based on the runtime implementation:

constructor ({ port, handlers, throwOnMissingHandler, name }) {


I noticed this while migrating type tests to TSTyche. Hope you don’t mind this as a fix and migration in one PR. The type test is written from scratch. It covers all typings from the .d.ts including the new options. The shape of the test is different, but it does everything that the previous test did (and more).

Signed-off-by: mrazauskas <tom@mrazauskas.de>
Comment on lines -21 to -22
declare module '@platformatic/itc' {
export { ITC }
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Seems to be redundant. Or?

Copy link
Copy Markdown
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@mcollina mcollina merged commit 88b775c into platformatic:main Mar 27, 2026
155 checks passed
@mrazauskas mrazauskas deleted the fix-types-platformatic-itc branch March 28, 2026 05:39
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