Skip to content

EReturn type#2659

Merged
turadg merged 3 commits into
masterfrom
ta/EReturn
Dec 12, 2024
Merged

EReturn type#2659
turadg merged 3 commits into
masterfrom
ta/EReturn

Conversation

@turadg

@turadg turadg commented Dec 11, 2024

Copy link
Copy Markdown
Member

incidental

Description

Migrated from Agoric/agoric-sdk#9011

Define an EReturn type for the Awaited<ReturnType< pattern.

Security Considerations

none

Scaling Considerations

none

Documentation Considerations

This will appear in TSdoc

Testing Considerations

has tests

Compatibility Considerations

none

Upgrade Considerations

none

@michaelfig michaelfig left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM! This is a good utility to make available.

I pushed some other changes to dedupe @endo/far type aliases and export EReturn from that package as well. PTAL and feel free to merge when satisfied.

@turadg turadg enabled auto-merge December 12, 2024 01:18
@turadg turadg merged commit 5df9122 into master Dec 12, 2024
@turadg turadg deleted the ta/EReturn branch December 12, 2024 01:19
mergify Bot added a commit to Agoric/agoric-sdk that referenced this pull request Jan 29, 2025
## Description

While working on another PR, I had to type out `ReturnType<Awaited<ReturnType<` again and I wished for a utility type.

This PR first made an `ExoObj` type but has changed to use `EReturn` now available in Endo.
- endojs/endo#2659

### Security Considerations
n/a
### Scaling Considerations

n/a

### Documentation Considerations

Not necessary

### Testing Considerations

CI

### Upgrade Considerations

n/a
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