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