Skip to content

Commit

Permalink
chore(types): work around microsoft/TypeScript#50286
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Nov 16, 2022
1 parent 07b0d08 commit a275899
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions packages/ERTP/src/issuerKit.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ harden(vivifyIssuerKit);
* larger unit of computation, like the enclosing vat, can be shutdown
* before anything else is corrupted by that corrupted state.
* See https://github.com/Agoric/agoric-sdk/issues/3434
* @param {Partial<{elementShape: Pattern}>} [options]
* @param {Partial<{elementShape: Pattern}>} options
* @returns {IssuerKit<K>}
*/
export const makeDurableIssuerKit = (
Expand Down Expand Up @@ -136,7 +136,7 @@ harden(makeDurableIssuerKit);
* larger unit of computation, like the enclosing vat, can be shutdown
* before anything else is corrupted by that corrupted state.
* See https://github.com/Agoric/agoric-sdk/issues/3434
* @param {Partial<{elementShape: Pattern}>} [options]
* @param {Partial<{elementShape: Pattern}>} options
* @returns {IssuerKit<K>}
*/
export const makeIssuerKit = (
Expand Down
8 changes: 4 additions & 4 deletions packages/SwingSet/src/liveslots/collectionManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ export function makeCollectionManager(
*
* @template K,V
* @param {string} [label='map'] - diagnostic label for the store
* @param {StoreOptions=} options
* @param {StoreOptions} options
* @returns {MapStore<K,V>}
*/
function makeScalarBigMapStore(
Expand Down Expand Up @@ -874,7 +874,7 @@ export function makeCollectionManager(
*
* @template K,V
* @param {string} [label='weakMap'] - diagnostic label for the store
* @param {StoreOptions=} options
* @param {StoreOptions} options
* @returns {WeakMapStore<K,V>}
*/
function makeScalarBigWeakMapStore(
Expand All @@ -901,7 +901,7 @@ export function makeCollectionManager(
*
* @template K
* @param {string} [label='set'] - diagnostic label for the store
* @param {StoreOptions=} options
* @param {StoreOptions} options
* @returns {SetStore<K>}
*/
function makeScalarBigSetStore(
Expand All @@ -926,7 +926,7 @@ export function makeCollectionManager(
*
* @template K
* @param {string} [label='weakSet'] - diagnostic label for the store
* @param {StoreOptions=} options
* @param {StoreOptions} options
* @returns {WeakSetStore<K>}
*/
function makeScalarBigWeakSetStore(
Expand Down
4 changes: 2 additions & 2 deletions packages/store/src/patterns/encodePassable.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ const decodeTagged = (encoded, decodePassable) => {
*/

/**
* @param {EncodeOptions} [encodeOptions]
* @param {EncodeOptions} encodeOptions
* @returns {(passable: Passable) => string}
*/
// `yarn lint` complains here but not for equivalent code in agoric-sdk.
Expand Down Expand Up @@ -399,7 +399,7 @@ harden(makeEncodePassable);
*/

/**
* @param {DecodeOptions} [decodeOptions]
* @param {DecodeOptions} decodeOptions
* @returns {(encoded: string) => Passable}
*/
// `yarn lint` complains here but not for equivalent code in agoric-sdk.
Expand Down
2 changes: 1 addition & 1 deletion packages/store/src/stores/scalarMapStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const makeMapStoreMethods = (
*
* @template K,V
* @param {string} [tag='key'] - the column name for the key
* @param {StoreOptions=} options
* @param {StoreOptions} options
* @returns {MapStore<K,V>}
*/
export const makeScalarMapStore = (
Expand Down
2 changes: 1 addition & 1 deletion packages/store/src/stores/scalarSetStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const makeSetStoreMethods = (
*
* @template K
* @param {string} [tag='key'] - tag for debugging
* @param {StoreOptions=} options
* @param {StoreOptions} options
* @returns {SetStore<K>}
*/
export const makeScalarSetStore = (
Expand Down
2 changes: 1 addition & 1 deletion packages/store/src/stores/scalarWeakMapStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const makeWeakMapStoreMethods = (
*
* @template K,V
* @param {string} [tag='key'] - tag for debugging
* @param {StoreOptions=} options
* @param {StoreOptions} options
* @returns {WeakMapStore<K,V>}
*/
export const makeScalarWeakMapStore = (
Expand Down
2 changes: 1 addition & 1 deletion packages/store/src/stores/scalarWeakSetStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const makeWeakSetStoreMethods = (
*
* @template K
* @param {string} [tag='key'] - tag for debugging
* @param {StoreOptions=} options
* @param {StoreOptions} options
* @returns {WeakSetStore<K>}
*/
export const makeScalarWeakSetStore = (
Expand Down
2 changes: 1 addition & 1 deletion packages/swing-store/src/snapStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const sink = () => {};
* tmpName: typeof import('tmp').tmpName,
* unlink: typeof import('fs').promises.unlink,
* }} io
* @param {object} [options]
* @param {object} options
* @param {boolean | undefined} [options.keepSnapshots]
* @returns {SnapStore}
*/
Expand Down
4 changes: 2 additions & 2 deletions packages/telemetry/src/slog-to-otel.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ export const makeSlogToOtelKit = (tracer, overrideAttrs = {}) => {

/**
* @param {string | [string, ...any]} key
* @param {object} [options]
* @param {object} options
* @param {string} [options.kind]
* @param {string} [options.name]
* @param {Record<string, any>} [options.attributes]
Expand Down Expand Up @@ -334,7 +334,7 @@ export const makeSlogToOtelKit = (tracer, overrideAttrs = {}) => {

/**
* @param {string | [string, ...any]} [assertKindOrKey]
* @param {object} [options]
* @param {object} options
* @param {Record<string, any>} [options.attributes]
* @param {string} [options.errorMessage]
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/vats/src/core/startWalletFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const startGovernedInstance = async (
* options?: {
* perAccountInitialValue?: bigint
* },
* }} [config]
* }} config
*/
export const startWalletFactory = async (
{
Expand Down
2 changes: 1 addition & 1 deletion packages/vats/src/lib-board.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const calcCrc = (data, crcDigits) => {
* Create a board to post things on.
*
* @param {bigint | number} [initSequence]
* @param {object} [options]
* @param {object} options
* @param {string} [options.prefix]
* @param {number} [options.crcDigits]
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/zoe/src/contractFacet/internal-types.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @typedef {( {zcf: ZCF} ) => void} TestJigSetter
* @typedef {( jigs: {zcf: ZCF} ) => void} TestJigSetter
*/

/**
Expand Down

0 comments on commit a275899

Please sign in to comment.