Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Jan 9, 2024
1 parent e140c97 commit a6c2693
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/marshal/src/encodePassable.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import {
passableSymbolForName,
} from '@endo/pass-style';

/** @typedef {import('@endo/pass-style').PassStyle} PassStyle */
/** @typedef {import('@endo/pass-style').Passable} Passable */
/** @typedef {import('@endo/pass-style').RemotableObject} Remotable */
/** @typedef {import('@endo/pass-style/src/types.js').PassStyle} PassStyle */
/** @typedef {import('@endo/pass-style/src/types.js').Passable} Passable */
/** @typedef {import('@endo/pass-style/src/types.js').RemotableObject} Remotable */
/**
* @template {Passable} [T=Passable]
* @typedef {import('@endo/pass-style').CopyRecord<T>} CopyRecord
* @typedef {import('@endo/pass-style/src/types.js').CopyRecord<T>} CopyRecord
*/
/** @typedef {import('./types.js').RankCover} RankCover */

Expand Down Expand Up @@ -333,6 +333,7 @@ export const makeEncodePassable = (encodeOptions = {}) => {
encodeError = (err, _) => Fail`error unexpected: ${err}`,
} = encodeOptions;

/** @param {Passable} passable */
const encodePassable = passable => {
if (isErrorLike(passable)) {
return encodeError(passable, encodePassable);
Expand Down
1 change: 1 addition & 0 deletions packages/pass-style/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"module": "./index.js",
"exports": {
".": "./index.js",
"./src/types.js": "./src/types.js",
"./tools.js": "./tools.js",
"./endow.js": "./endow.js",
"./package.json": "./package.json"
Expand Down

0 comments on commit a6c2693

Please sign in to comment.