import * as tm from "type-mapping"; import {RouteData} from "../route"; /** The server receives this as the header */ export type ServerHeader = ( DataT["header"] extends tm.AnySafeMapper ? ( & tm.OutputOf & { [key : string] : string | (string[]) | undefined } ) : { [key : string] : string | (string[]) | undefined } ); /** The client should send this as the header */ export type ClientExpectedHeader = ( DataT["header"] extends tm.AnySafeMapper ? tm.ExpectedInputOf : never ); /** The client may send this as the header */ export type ClientMappableHeader = ( DataT["header"] extends tm.AnySafeMapper ? tm.MappableInputOf : never );