-
Notifications
You must be signed in to change notification settings - Fork 1
docs: add JSDoc to all re-exported symbols — api-documented 0% → 100% #65
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -269,4 +269,39 @@ export function createChronos(db, options = {}) { | |||||
| }; | ||||||
| } | ||||||
|
|
||||||
| export { withCause, currentCause }; | ||||||
| /** | ||||||
| * Run a function within a causal context so that all nodes created during | ||||||
| * execution carry `causeId` as their causal parent. | ||||||
| * | ||||||
| * Re-exported from `@plures/chronos/causal` for convenience. | ||||||
| * | ||||||
| * @param {string} causeId - ID of the parent node to set as the active cause | ||||||
| * @param {Function} fn - Synchronous or async function to execute inside the scope | ||||||
|
||||||
| * @param {Function} fn - Synchronous or async function to execute inside the scope | |
| * @param {function} fn - Synchronous or async function to execute inside the scope |
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.
JSDoc uses
@param {Function} fnhere, but elsewhere (notablysrc/causal.js) function parameters are typed as lowercase{function}. Aligning to{function}would keep the public re-export docs consistent with the source API docs and avoid any tooling differences betweenFunctionvsfunction.