@ptkl/sdk - v1.7.1
    Preparing search index...

    Type Alias ComponentFunctionInput<C, F>

    ComponentFunctionInput: ComponentFunctions[C][F] extends { input: infer I }
        ? I
        : Record<string, any>

    Inferred input type for a component function.

    Type Parameters

    type TestInput = ComponentFunctionInput<"ecommerce::order", "test">
    // → { discount?: number; items: number[] }