mirror of
https://github.com/Comfy-Org/comfy-typescript-sdk.git
synced 2026-11-04 23:47:27 +00:00
[PR #29] [MERGED] docs: TSDoc for the public API members that had none #39
Labels
No labels
audit:ai-readiness
audit:community
audit:github
audit:health-scoring
audit:policy
audit:release
audit:supply-chain
bug
cursor-review-pin
effort:medium
effort:small
effort:trivial
priority:nice-to-have
priority:recommended
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-typescript-sdk#39
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/comfy-typescript-sdk/pull/29
Author: @robinjhuang
Created: 7/30/2026
Status: ✅ Merged
Merged: 7/30/2026
Merged by: @wei-hai
Base:
main← Head:docs/public-api-tsdoc📝 Commits (1)
11d0d22docs: TSDoc for the public API members that had none📊 Changes
5 files changed (+105 additions, -0 deletions)
View changed files
📝
src/sdk/assets.ts(+21 -0)📝
src/sdk/client.ts(+9 -0)📝
src/sdk/jobs.ts(+34 -0)📝
src/sdk/outputs.ts(+29 -0)📝
src/sdk/workflows.ts(+12 -0)📄 Description
In TypeScript the doc comment is the discovery mechanism — it's what the editor shows on hover and what ships inside the
.d.ts— and the gaps were in the least guessable places: therangetuple onOutput.toFile/toBytesis inclusive of both ends,Job.getOutputsreads state already on the handle rather than re-fetching (and returns[]for an unknown node instead of throwing),Job.cancelis a request rather than a guarantee, andAsset.createdNewdistinguishes uploaded from server-deduped.Comfy,Job,Output,WorkflowandAssethad no class doc at all, so hovering the main entry points showed nothing.Public methods/getters documented goes from 15/38 to 38/38; no behaviour change.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.