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