-
Notifications
You must be signed in to change notification settings - Fork 74
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
[Typescript Plugin] - Spread operator not handled #66
Comments
I have the same problem :/ any ideas? OK I found how to solve this problem. I installed this plugin: and now my .esdoc.json is: {
"source": "./src",
"destination": "./docs",
"includes": [
"\\.ts$"
],
"excludes": [
"\\.config\\.ts$"
],
"plugins": [
{
"name": "esdoc-ecmascript-proposal-plugin",
"option": {
"classProperties": true,
"objectRestSpread": true,
"doExpressions": true,
"functionBind": true,
"functionSent": true,
"asyncGenerators": true,
"decorators": true,
"exportExtensions": true,
"dynamicImport": true
}
},
{
"name": "esdoc-typescript-plugin",
"option": {
"enable": true
}
},
{
"name": "esdoc-standard-plugin"
}
]
} And no problem with spread operators :) |
I solved it by using Object.assign(). |
@ziunio workaround didn't work for me. In my case, I have functions with spread parameters with Types that esdoc is resulting in "undefined". This function: thing (...thingConstructors: ThingConstructor<Thing>[]): number[] { generates this documentation:
Whether I use that plugin or not. |
I have a function in typescript that returns a promise. The spread operator is used to merge properties of two objects. ESDoc fails on that line and runs smoothly when I cut it.
Any idea how to solve this? Thanks!
The text was updated successfully, but these errors were encountered: