Skip to content

Commit

Permalink
acknowledge deferred work
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Jan 10, 2024
1 parent 8246acd commit caf606f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/marshal/src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ export {};
* ordering would also compare magnitudes, and so agree with the rank ordering
* of all values other than `NaN`. An array sorted by rank would enable range
* queries by magnitude.
* @param {any} left a Passable
* @param {any} right a Passable
* @param {Passable} left
* @param {Passable} right
* @returns {RankComparison}
*/

Expand Down
2 changes: 2 additions & 0 deletions packages/pass-style/src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,15 @@ export {};
* The authority-bearing leaves of a Passable's pass-by-copy superstructure.
*/

// TODO a better default type. Ideally it's Passable, but that causes a circular definition.
/**
* @template {Passable} [T=object]
* @typedef {T[]} CopyArray
*
* A Passable sequence of Passable values.
*/

// TODO a better default type. Ideally it's Passable, but that causes a circular definition.
/**
* @template {Passable} [T=object]
* @typedef {Record<string, T>} CopyRecord
Expand Down
2 changes: 2 additions & 0 deletions packages/patterns/src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export {};
/** @typedef {import('@endo/marshal').RankCompare} RankCompare */
/** @typedef {import('@endo/marshal').RankCover} RankCover */

// FIXME exclude nested Error and Promise
/**
* @typedef {Exclude<Passable, Error | Promise>} Key
*
Expand Down Expand Up @@ -60,6 +61,7 @@ export {};
* @returns {string}
*/

// FIXME exclude nested Error and Promise
/**
* @typedef {Exclude<Passable, Error | Promise>} Pattern
*
Expand Down

0 comments on commit caf606f

Please sign in to comment.