type-alias / @typed/router/TypeFunction

InputOf

Extracts the input supplied to a type function.

Package version
1.0.0-beta.7
Category
Type function application
Since
1.0.0

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];

Source