UNPKG

@metamask/json-rpc-engine

Version:
10 lines 503 B
import type { Json, JsonRpcParams } from "@metamask/utils"; import type { JsonRpcMiddleware } from "./JsonRpcEngine.mjs"; /** * Takes a stack of middleware and joins them into a single middleware function. * * @param middlewareStack - The middleware stack to merge. * @returns The merged middleware function. */ export declare function mergeMiddleware(middlewareStack: JsonRpcMiddleware<JsonRpcParams, Json>[]): JsonRpcMiddleware<JsonRpcParams, Json>; //# sourceMappingURL=mergeMiddleware.d.mts.map