-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Why generated TypeScript definitions service method return type didn't contain Promise type? #770
Comments
Seems JSDoc has stopped documenting because, well, I didn't add enough bullshit annotations and workarounds with undocumented side effects to the generated code's comments. Did that now. |
still not work ;( The memberof property not same cause second definitions for promise used is never be found by 'getChildrenOf()' |
I fix the problem by replace the code: pushComment([
method.comment || "Calls " + method.name + ".",
"@function " + escapeName(service.name) + "#" + lcName,
"@param {" + exportName(method.resolvedRequestType, !config.forceMessage) + "} request " + method.resolvedRequestType.name + " message or plain object",
"@returns {Promise<" + exportName(method.resolvedResponseType) + ">} Promise",
"@variation 2"
]); reaplace |
protobuf.js version: latest in master
protofile:expected:
actual
The text was updated successfully, but these errors were encountered: