(callback: PluginRegistrationCallback)
| 69 | const pluginRegistrationConsumers: ((callback: PluginRegistrationCallback) => void)[] = []; |
| 70 | |
| 71 | export function buildbotSetupPlugin(callback: PluginRegistrationCallback) { |
| 72 | pluginRegistrationCallbacks.push(callback); |
| 73 | for (const consumer of pluginRegistrationConsumers) { |
| 74 | consumer(callback); |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | // Not intended to be used by plugins themselves |
| 79 | export function registerPluginRegistrationConsumer( |
no test coverage detected