import * as tm from "type-mapping"; import {RouteData} from "../route"; /** The client receives this as the response */ export type ClientResponse = ( DataT["response"] extends tm.AnySafeMapper ? tm.OutputOf : undefined ); /** The server should send this as the response */ export type ServerExpectedResponse = ( DataT["response"] extends tm.AnySafeMapper ? tm.ExpectedInputOf : never ); /** The server may send this as the response */ export type ServerMappableResponse = ( DataT["response"] extends tm.AnySafeMapper ? tm.MappableInputOf : never );