Skip to content

Commit

Permalink
fixup! oops
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed May 14, 2024
1 parent 6e3797a commit 7303b1a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/async-flow/src/bijection.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Far } from '@endo/pass-style';
import { toPassableCap } from '@agoric/vow';
import { makeEphemera } from './ephemera.js';

const WeakBijectionI = M.interface('WeakBijection', {
const BijectionI = M.interface('Bijection', {
reset: M.call().returns(),
init: M.call(M.any(), M.any()).returns(),
hasGuest: M.call(M.any()).returns(M.boolean()),
Expand Down Expand Up @@ -56,13 +56,13 @@ const makeVowishStore = name => {
/**
* @param {Zone} zone
*/
export const prepareWeakBijection = zone => {
/** @type {Ephemera<WeakBijection, VowishStore>} */
export const prepareBijection = zone => {
/** @type {Ephemera<Bijection, VowishStore>} */
const g2h = makeEphemera(() => makeVowishStore('guestToHost'));
/** @type {Ephemera<WeakBijection, VowishStore>} */
/** @type {Ephemera<Bijection, VowishStore>} */
const h2g = makeEphemera(() => makeVowishStore('hostToGuest'));

return zone.exoClass('WeakBijection', WeakBijectionI, () => ({}), {
return zone.exoClass('Bijection', BijectionI, () => ({}), {
reset() {
const { self } = this;

Expand Down Expand Up @@ -125,8 +125,8 @@ export const prepareWeakBijection = zone => {
},
});
};
harden(prepareWeakBijection);
harden(prepareBijection);

/**
* @typedef {ReturnType<ReturnType<prepareWeakBijection>>} WeakBijection
* @typedef {ReturnType<ReturnType<prepareBijection>>} Bijection
*/

0 comments on commit 7303b1a

Please sign in to comment.