-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use TS satisfies #8032
use TS satisfies #8032
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onward
* brand: import('@agoric/internal/src/marshal.js').BoardRemote & Brand, | ||
* brand: import('@agoric/internal/src/marshal.js').BoardRemote, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// NB: not really a Proposal because the brands are not remotes | ||
// Instead they're copyRecord like "{"boardId":"board0257","iface":"Alleged: IST brand"}" to pass through the boardId | ||
// mustMatch(harden(proposal), ProposalShape); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This NB:
is no longer the case, is it? makeBoardRemote
uses Far
. The change to smallcaps made it necessary, IIRC.
@@ -373,6 +369,9 @@ const makePushPriceOffer = (_agoricNames, opts, previousOffer) => { | |||
}; | |||
}; | |||
|
|||
/** | |||
* @satisfies {Record<string, Record<string, import('@agoric/smart-wallet/src/types.js').OfferMaker>>} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL:
satisfies
makes sure a value's type matches some type shape, but doesn't widen the type unnecessarily.
This PR removes the following lint warnings introduced by version update of eslint-plugin-jsdoc in Agoric#8032. (jsdoc/no-defaults) Defaults are not permitted on @param
This PR removes the following lint warnings introduced by version update of eslint-plugin-jsdoc in Agoric#8032. (jsdoc/no-defaults) Defaults are not permitted on @param
Description
Makes use of
@satisfies
for the OfferMaker lookup in clientSupport. Also bumps deps to support it.See https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/#satisfies-support-in-jsdoc
Security Considerations
Scaling Considerations
Documentation Considerations
Testing Considerations
CI