MCPcopy Create free account
hub / github.com/Web3Auth/Auth / isInstance

Method isInstance

src/jrpc/v2/v2utils.ts:24–26  ·  view source on GitHub ↗

* Check if a value is a JsonRpcEngineError instance. * Works across different package versions in the same realm. * * @param value - The value to check. * @returns Whether the value is a JsonRpcEngineError instance.

(value: unknown)

Source from the content-addressed store, hash-verified

22 * @returns Whether the value is a {@link JsonRpcEngineError} instance.
23 */
24 static isInstance(value: unknown): value is JsonRpcEngineError {
25 return isInstance(value, JsonRpcEngineErrorSymbol);
26 }
27}

Callers 3

utils.test.tsFile · 0.45
_handleMethod · 0.45

Calls 1

isInstanceFunction · 0.90

Tested by

no test coverage detected