Infer the plain API type from a defineAPI() result.
defineAPI() returns an object where methods are DefinedMethod instances
(functions with ~validators metadata). The client side doesn't know about
DefinedMethod — it just needs the plain function signatures. This type
strips the metadata and produces a clean API type suitable for
RPCChannel<{}, InferAPI<typeof api>>.
DefinedMethod → plain async function with inferred arg/return types
Infer the plain API type from a
defineAPI()result.defineAPI()returns an object where methods areDefinedMethodinstances (functions with~validatorsmetadata). The client side doesn't know aboutDefinedMethod— it just needs the plain function signatures. This type strips the metadata and produces a clean API type suitable forRPCChannel<{}, InferAPI<typeof api>>.DefinedMethod→ plain async function with inferred arg/return typesRecord<string, unknown>→ recurse