MCPcopy
hub / github.com/callstack/agent-device / createThrowingMethodGroup

Function createThrowingMethodGroup

src/__tests__/remote-connection.test.ts:67–71  ·  view source on GitHub ↗
(methods: Partial<T> = {})

Source from the content-addressed store, hash-verified

65});
66
67function createThrowingMethodGroup<T extends object>(methods: Partial<T> = {}): T {
68 return new Proxy(methods, {
69 get: (target, property) => target[property as keyof T] ?? unexpectedCommandCall,
70 }) as T;
71}
72
73function createTestClient(
74 options: {

Callers 1

createTestClientFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected