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