Input shape for implementApi. endpoints and webSockets are flat arrays of fully-typed
implementations. TypeScript verifies each element against a single uniform element type — no
per-element path narrowing, no tuple-of-paths generic. That mirrors how runtime dispatch works
(each implementation carries its own path) and keeps the type-check work flat regardless of
route count. Runtime coverage checks against the api definition catch missing or duplicate
paths.
Input shape for
implementApi.endpointsandwebSocketsare flat arrays of fully-typed implementations. TypeScript verifies each element against a single uniform element type — no per-element path narrowing, no tuple-of-paths generic. That mirrors how runtime dispatch works (each implementation carries its ownpath) and keeps the type-check work flat regardless of route count. Runtime coverage checks against the api definition catch missing or duplicate paths.