-
Notifications
You must be signed in to change notification settings - Fork 1k
docs(js-sdk): 3 docstrings name parameters the functions do not take #1740
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -329,8 +329,7 @@ export class Volume extends ClientFactory { | |||||
| * Create a directory. | ||||||
| * | ||||||
| * @param path path to the directory to create. | ||||||
| * @param options directory creation options. | ||||||
| * @param opts connection options. | ||||||
| * @param opts directory creation and connection options. | ||||||
| */ | ||||||
| async makeDir( | ||||||
| path: string, | ||||||
|
|
@@ -663,8 +662,7 @@ export class Volume extends ClientFactory { | |||||
| * | ||||||
| * @param path path to the file. | ||||||
| * @param data data to write to the file. Data can be a string, `ArrayBuffer`, `Blob`, or `ReadableStream`. Outside the browser, `ReadableStream` data is streamed to the API instead of being buffered in memory. | ||||||
| * @param options file creation options. | ||||||
| * @param opts connection options. | ||||||
| * @param opts file creation and connection options. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. T-69 — same issue as
Suggested change
|
||||||
| * | ||||||
| * @returns information about the written file | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. T-72 — a
Suggested change
|
||||||
| */ | ||||||
|
|
||||||
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.
T-69 (docstrings are part of the API — every public method documents its parameters, defaults and failure modes) and T-72 (a
@returnsthat restates the method name documents nothing — here it is missing entirely while the method returnsVolumeEntryStat).Dropping the phantom
optionsparam is right, but "directory creation and connection options" names no knob the caller can act on:optsisVolumeWriteOpts & VolumeApiOpts, i.e.uid/gid/mode,force(create missing parents), and the connection surface (requestTimeoutMs,headers,proxy,domain).