We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94d4065 commit 76cf016Copy full SHA for 76cf016
src/Uwave.js
@@ -202,8 +202,14 @@ class UwaveServer extends EventEmitter {
202
203
/**
204
* Register a source plugin.
205
+ *
206
+ * @template TOptions
207
+ * @template {import('./source/types').HotSwappableSourcePlugin<
208
+ * TOptions, import('type-fest').JsonValue>} TPlugin
209
+ * @param {TPlugin} sourcePlugin
210
+ * @param {TOptions} [opts]
211
*/
- async useSource(sourcePlugin, opts = {}) {
212
+ async useSource(sourcePlugin, opts) {
213
/** @type {import('avvio').Avvio<this>} */
214
// @ts-ignore
215
const boot = this;
0 commit comments