(fn: Middleware<T>)
| 13 | } |
| 14 | |
| 15 | eject(fn: Middleware<T>): void { |
| 16 | const index = this._fns.indexOf(fn) |
| 17 | if (index !== -1) { |
| 18 | this._fns = [...this._fns.slice(0, index), ...this._fns.slice(index + 1)] |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | use(fn: Middleware<T>): void { |
| 23 | this._fns = [...this._fns, fn] |
nothing calls this directly
no outgoing calls
no test coverage detected