-
Notifications
You must be signed in to change notification settings - Fork 508
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
feat(bindings/nodejs): generate types and add typed create_operator method #5465
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 |
---|---|---|
|
@@ -137,6 +137,10 @@ Writer.prototype.createWriteStream = function (options) { | |
return new WriteStream(this, options) | ||
} | ||
|
||
module.exports.create_operator = function (scheme, options) { | ||
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. Can we modify the 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. we can't since type of 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. Then we need to design new APIs instead of adding another one. Maybe we can impelment 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. any idea how? do you suggest to wrap all method of 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.
It seems like a possible approach. I'm not sure if we can have multiple 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. It's getting messy... I haven't start using nodejs binding yet, maybe I'll try this some days later. |
||
return new Operator(scheme, options) | ||
} | ||
|
||
module.exports.Operator = Operator | ||
module.exports.layers = { | ||
RetryLayer, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,7 @@ | |
"webhdfs" | ||
], | ||
"files": [ | ||
"types.generated.d.ts", | ||
"index.d.ts", | ||
"index.js", | ||
"generated.d.ts", | ||
|
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.
We have repeated this pattern once again. Let's implement a utility function to retrieve all enabled services by cargo metadata.