MCPcopy Create free account
hub / github.com/0010aor/FlashNotes / eject

Method eject

frontend/src/client/core/OpenAPI.ts:15–20  ·  view source on GitHub ↗
(fn: Middleware<T>)

Source from the content-addressed store, hash-verified

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]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected