mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-09 21:35:58 +00:00
5dc4b2134e
In 776db1b7f7 (diff-5cab125016e6d753f03b6cd0241d5ebbR267)
we've introduced the ability to add
a `priority` parameter to plugin actions, so the order of actions can be semi-ensured.
That commit also introduced typings for that new API but it actually didn't match the
implementation of the API, namely that the second parameter of `Plugin.registerActionForEvent()`
can be either an options object **or** a callback function.
This forces consumers to call the API as `registerActoniForEvent(name, undefined|null, callback)`
which shouldn't be necessary.