-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
154da76
commit 180149e
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
export { E } from '@agoric/eventual-send'; | ||
export { Far, getInterfaceOf, passStyleOf } from '@agoric/marshal'; | ||
|
||
/** | ||
* @template T | ||
* @typedef {import('@agoric/eventual-send').ERef<T>} ERef | ||
* Declare that `T` can be either a near or far reference. This should be used | ||
* only for arguments and declarations; return values should specifically be | ||
* `Promise<T>` or `T` itself. | ||
*/ | ||
|
||
/** | ||
* @template T | ||
* @typedef {import('@agoric/eventual-send').EOnly<T>} EOnly | ||
* A type that must only be invoked with E. It supports the `T` interface | ||
* interface but additionally permits functions to return `PromiseLike`s even if | ||
* `T` declares them as only synchronous. | ||
*/ |