diff --git a/packages/marshal/src/encodePassable.js b/packages/marshal/src/encodePassable.js index 002d3be0f7..308adc1472 100644 --- a/packages/marshal/src/encodePassable.js +++ b/packages/marshal/src/encodePassable.js @@ -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} CopyRecord + * @typedef {import('@endo/pass-style/src/types.js').CopyRecord} CopyRecord */ /** @typedef {import('./types.js').RankCover} RankCover */ @@ -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); diff --git a/packages/pass-style/package.json b/packages/pass-style/package.json index 3d4b15c80f..c499975cba 100644 --- a/packages/pass-style/package.json +++ b/packages/pass-style/package.json @@ -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"