-
Notifications
You must be signed in to change notification settings - Fork 206
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
correct types for pattern matchers #6206
Comments
FWIW, this is implemented at agoric-sdk/packages/store/src/patterns/patternMatchers.js Lines 1537 to 1543 in 9b78628
I'm actually surprised I didn't write any comments explaining this at all. I certainly agree it is needed. Also |
@turadg How much of this issue is addressed by endojs/endo#1715 ? Note that endojs/endo#1715 is merged into endo. But an endo with that change is not yet released, and therefore not yet available to agoric-sdk. |
When I link HEAD of Unfortunately the type when importing |
Oh sorry! I lost track of #7949. Looking now. Are you waiting on me for anything else? |
No worries! Wasn't waiting on 7949 since it was low prio. If it was high I would have pestered you 😉 |
Good! In any case, LGTMed that one. Please let me know whether it fixes the issue here. |
What is the Problem Being Solved?
While working on this again, documenting
.optional
would help (https://github.com/Agoric/agoric-sdk/pull/6202/files#r971342637 )I wondered why code could use it without the type and it's because
M.call()
returnsagoric-sdk/packages/store/src/types.js
Lines 611 to 612 in 870bd22
Relevant
Description of the Design
No
any
for pattern matcher types.Security Considerations
Test Plan
The text was updated successfully, but these errors were encountered: