Skip to content

Commit

Permalink
chore: work around microsoft/TypeScript#50286
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Oct 28, 2022
1 parent 980734f commit e55b63d
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/lp32/reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const { details: X, quote: q } = assert;

/**
* @param {Iterable<Uint8Array> | AsyncIterable<Uint8Array>} reader
* @param {Object} [opts]
* @param {Object} opts
* @param {string=} [opts.name]
* @param {number} [opts.maxMessageLength] - defaults to 1MB
* @param {boolean=} [opts.littleEndian]
Expand Down
2 changes: 1 addition & 1 deletion packages/lp32/writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { details: X, quote: q } = assert;

/**
* @param {import('@endo/stream').Writer<Uint8Array, undefined>} output
* @param {Object} [opts]
* @param {Object} opts
* @param {number} [opts.maxMessageLength] - defaults to 1MB
* @param {string} [opts.name]
* @param {boolean} [opts.littleEndian] - defaults to host byte order
Expand Down
4 changes: 2 additions & 2 deletions packages/marshal/src/encodeToCapData.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const dontEncodeErrorToCapData = err =>
assert.fail(X`error object unexpected: ${err}`);

/**
* @param {EncodeToCapDataOptions} [encodeOptions]
* @param {EncodeToCapDataOptions} encodeOptions
* @returns {(passable: Passable) => Encoding}
*/
export const makeEncodeToCapData = ({
Expand Down Expand Up @@ -308,7 +308,7 @@ const dontDecodeErrorFromCapData = errorEncoding =>
* API where these can reliably differ.
* See https://github.com/Agoric/agoric-sdk/issues/4334
*
* @param {DecodeOptions} [decodeOptions]
* @param {DecodeOptions} decodeOptions
* @returns {(encoded: Encoding) => Passable}
*/
export const makeDecodeFromCapData = ({
Expand Down
4 changes: 2 additions & 2 deletions packages/marshal/src/encodeToSmallcaps.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const dontEncodeErrorToSmallcaps = err =>
assert.fail(X`error object unexpected: ${q(err)}`);

/**
* @param {EncodeToSmallcapsOptions} [encodeOptions]
* @param {EncodeToSmallcapsOptions} encodeOptions
* @returns {(passable: Passable) => SmallcapsEncoding}
*/
export const makeEncodeToSmallcaps = ({
Expand Down Expand Up @@ -343,7 +343,7 @@ const dontDecodeErrorFromSmallcaps = encoding =>
assert.fail(X`error unexpected: ${q(encoding)}`);

/**
* @param {DecodeFromSmallcapsOptions=} decodeOptions
* @param {DecodeFromSmallcapsOptions} decodeOptions
* @returns {(encoded: SmallcapsEncoding) => Passable}
*/
export const makeDecodeFromSmallcaps = ({
Expand Down
2 changes: 1 addition & 1 deletion packages/marshal/src/marshal.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const defaultSlotToValFn = (x, _) => x;
* @template Slot
* @param {ConvertValToSlot<Slot>} [convertValToSlot]
* @param {ConvertSlotToVal<Slot>} [convertSlotToVal]
* @param {MakeMarshalOptions} [options]
* @param {MakeMarshalOptions} options
*/
export const makeMarshal = (
convertValToSlot = defaultValToSlotFn,
Expand Down
2 changes: 1 addition & 1 deletion packages/netstring/reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const NINE = '9'.charCodeAt(0);

/**
* @param {Iterable<Uint8Array> | AsyncIterable<Uint8Array>} input
* @param {Object} [opts]
* @param {Object} opts
* @param {string} [opts.name]
* @param {number} [opts.maxMessageLength]
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/netstring/writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const getLengthPrefixCharCodes = length =>
* to avoid pre-concatenating them.
*
* @param {import('@endo/stream').Writer<Uint8Array, undefined>} output
* @param {object} [opts]
* @param {object} opts
* @param {boolean} [opts.chunked]
* @returns {import('@endo/stream').Writer<Uint8Array | Uint8Array[], undefined>}
*/
Expand Down

0 comments on commit e55b63d

Please sign in to comment.