Xuanwo commented on code in PR #1799:
URL:
https://github.com/apache/incubator-opendal/pull/1799#discussion_r1152718502
##########
bindings/nodejs/index.d.ts:
##########
@@ -292,18 +292,57 @@ export class Operator {
* Get a presigned request for read.
*
* Unit of expires is seconds.
+ *
+ * ### Example
Review Comment:
This example seems over designed. We only need to include
`op.presignRead(path, parseInt(expires))` part.
How about the following:
```js
const req = op.presignRead(path, parseInt(expires));
console.log("method: ", req.xxx)
console.log("url: ", req.xxx)
console.log("headers: ", req.xxx)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]