-
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
Incomplete jsdocs for Orchestration API types, variables, methods and parameters #9757
Comments
re inline |
OrchestrationFlow has no prose, but there's an Orchestration Flows blurb on the @agoric/orchestration page. That blurb should probably move. |
modified packages/async-flow/src/types.d.ts @@ -39,6 +39,12 @@ export type HostAsyncFuncWrapper = (
* The function from the host as it will be available in the guest.
*
* Specifically, Vow return values are converted to Promises.
+ *
+ * @example
+ * const localTransfer = (...) => { return asVow(() => ...); };
+ * @param {GuestOf<ZoeTools['localTransfer']>} ctx.localTransfer
+ *
+ * from `orchestration/src/examples/sendAnywhere.flows.js`
*/
export type GuestOf<F extends HostAsyncFuncWrapper> = F extend |
Documentation of failure modes would be nice. |
Functions / methods whose results await actions from other chains should be flagged. In general, anything with cost > O(1) amortized should be documented. |
refs: #9757 ## Description A bunch of docs improvements to get into the u17 release. This doesn't do all the things specified in the ticket so leaves open: - #9757 ### Security Considerations n/a ### Scaling Considerations n/a ### Documentation Considerations We'll need tutorial docs. I think some of the `@example` suggestions make more sense there. ### Testing Considerations CI ### Upgrade Considerations not yet deployed
@0xpatrickdev in Documentation Considerations of #10211, you write...
Do we have any JSDoc for those? I'm struggling to find |
Good question, PR'ed here: #10217 |
refs: #9757 ## Description - export types for `PortfolioHolder` and `CombinedInvitationMakers` for use in typedoc - improve typedoc copy ### Security Considerations n/a ### Scaling Considerations n/a ### Documentation Considerations This PR makes these exos appear in typedoc docs: - https://e46fc33c.agoric-sdk.pages.dev/funcs/_agoric_orchestration.preparePortfolioHolder - https://e46fc33c.agoric-sdk.pages.dev/funcs/_agoric_orchestration.preparePortfolioHolder ### Testing Considerations n/a ### Upgrade Considerations n/a
What is the Problem Being Solved?
The current @agoric/orchestration reference docs (JSDocs) are incomplete for the purpose of devrel to write stuff in docs.agoric.com.
Several methods and parameters are missing detailed descriptions, which hinders the ability of developers to understand and utilize the API effectively.
The missing Orch API JSDocs can be tracked on...
Expected Behavior:
The JSDocs should provide comprehensive information for all methods, including:
Tasks
The text was updated successfully, but these errors were encountered: