Import
import type { InputOf } from "@typed/router/TypeFunction";Signatures
export type InputOf<F extends TypeFunction<never, unknown>> = F extends {
readonly argument: (_: infer Input) => void;
} ? Input : Parameters<F["signature"]>[0];type-alias / @typed/router/TypeFunction
Extracts the input supplied to a type function.
import type { InputOf } from "@typed/router/TypeFunction";export type InputOf<F extends TypeFunction<never, unknown>> = F extends {
readonly argument: (_: infer Input) => void;
} ? Input : Parameters<F["signature"]>[0];