The var-args in the middle of parameter lists for Model#start and Model#on make it difficult to write TypeScript type definitions for them.
These backwards-compatible changes add alternative signatures that don't use var-args.
1) Model#start now supports a new array format for input paths:
model.start(outPath, inPath1, inPath2, ..., fn); // Old
model.start(outPath, [inPath1, inPath2, ...], fn); // New
2) Model#on has a new {useEventObjects: boolean} option. If true, it calls the listener with an Event object and the wildcard-captured segments as an array:
The var-args in the middle of parameter lists for
Model#start
andModel#on
make it difficult to write TypeScript type definitions for them.These backwards-compatible changes add alternative signatures that don't use var-args.
1)
Model#start
now supports a new array format for input paths:2)
Model#on
has a new{useEventObjects: boolean}
option. If true, it calls the listener with anEvent
object and the wildcard-captured segments as an array:Once this is published, I'll update derby-site with documentation on the new signatures and event objects.