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

Endo sync types #8688

Merged
merged 3 commits into from
Dec 21, 2023
Merged

Endo sync types #8688

merged 3 commits into from
Dec 21, 2023

Conversation

turadg
Copy link
Member

@turadg turadg commented Dec 21, 2023

refs: #8651

Description

The recent Endo sync had many hurdles so some were deferred to land it. One was a types regression.

This fixes that by importing the Endo types where appropriate. It also improves the accuracy of the Exo helpers in vat-data by guarding the this.facets.

Security Considerations

n/a

Scaling Considerations

n/a

Documentation Considerations

n/a

Testing Considerations

CI

Upgrade Considerations

roundsManager now has a tighter runtime check. It describes the actual interface so it should be backwards compatible.

@turadg turadg changed the title Endo sync follow-ups Endo sync types Dec 21, 2023
@turadg turadg added the automerge:rebase Automatically rebase updates, then merge label Dec 21, 2023
@mergify mergify bot merged commit bef63e5 into master Dec 21, 2023
67 checks passed
@mergify mergify bot deleted the ta/fixup-endo-sync branch December 21, 2023 20:13
@@ -14,8 +14,8 @@ const ownKeys =
);

/**
* @template T
* @typedef {(...args: Parameters<ReturnType<prepareAttenuator>>) => Farable<T>} MakeAttenuator
* @template {import('@endo/exo/src/exo-makers.js').Methods} T
Copy link
Member

Choose a reason for hiding this comment

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

What would it take to make the following work?

Suggested change
* @template {import('@endo/exo/src/exo-makers.js').Methods} T
* @template {import('@endo/exo').Methods} T

Copy link
Member Author

Choose a reason for hiding this comment

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

A release of Endo that exported the types at the root. I assume Endo maintainers haven't done this yet because they haven't decided on a stable set of type exports.

Screenshot 2023-12-23 at 9 19 09 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge:rebase Automatically rebase updates, then merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants