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

fix type imports in 'marshal' package #1940

Merged
merged 5 commits into from
Jan 10, 2024
Merged

fix type imports in 'marshal' package #1940

merged 5 commits into from
Jan 10, 2024

Conversation

turadg
Copy link
Member

@turadg turadg commented Jan 9, 2024

Description

In a recent review it came up that type imports to @endo/marshal were coming through as any. #1928 (comment)

The cause was that the maxNodeModuleJsDepth was 0, the default for tsconfig.json (as opposed to 2 for jsconfig.json). This bumps it to 1 to get the types from @endo/pass-style.

It also adds a regression test, which failed before the change.

As a bit of housekeeping it also bumps some typescript deps and refreshes the coverage report.

Security Considerations

Scaling Considerations

Documentation Considerations

Testing Considerations

Upgrade Considerations

Copy link
Contributor

@gibson042 gibson042 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@mhofman mhofman left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this.

Should the relaxation mentioned in #1928 (comment) be addressed in this PR?

packages/captp/package.json Show resolved Hide resolved
packages/marshal/package.json Show resolved Hide resolved
@turadg turadg merged commit 342ba62 into master Jan 10, 2024
14 checks passed
@turadg turadg deleted the ta/type-imports branch January 10, 2024 19:52
@mhofman
Copy link
Contributor

mhofman commented Jan 10, 2024

@turadg any reason the PassableCap were restored, but not the Passable from #1928 ?

@turadg
Copy link
Member Author

turadg commented Jan 10, 2024

@turadg any reason the PassableCap were restored, but not the Passable from #1928 ?

Because only the PassableCap was mentioned in the linked thread.

They're both any until #1933 so I don't think it's worth more attention atm.

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