This patch introduce a bug-fix and support for a couple new features.
Fixes:
- Certain types of JSDoc Promise parameter/return type definitions will no longer result in a crash. Specifically, the bug affected Promise definitions where a union type was used for the resolved value (for example:
Promise<any|any[]>
).
New features:
- There now exists support for rest parameters, where they used to be excluded from the parameter set.
- The Sails v1
customToJSON
model method is now supported. If this method is defined on any model, it will be excluded from the static definition, and instead added to the instance definition astoJSON?(...)
.