server‑side function implementAPICall<IA, IO, OA, OO>( apiCall: APICallDefinition<IA, IO, OA, OO>, implementation: (input: IA) => Promise<OA> ): APICall<IA, IO, OA, OO> Example usage: const getPostById = implementAPICall( definitions.getPostById, input => service.getById(input.id) )