schema-components - v3.7.0
    Preparing search index...

    Interface DispatchArgs<Props, Output, Resolver>

    Arguments accepted by dispatchRenderField.

    interface DispatchArgs<Props, Output, Resolver> {
        tree: WalkedField;
        value: unknown;
        path: string;
        depth: number;
        resolver: Resolver;
        config: DispatchConfig<Props, Output, Resolver>;
    }

    Type Parameters

    • Props

      The per-field props shape.

    • Output

      The adapter's per-field output type.

    • Resolver

      The resolver shape mapping schema types to render functions.

    Index

    Properties

    The walked field to render.

    value: unknown

    The data value at this position in the tree.

    path: string

    Dot-separated path from the schema root.

    depth: number

    Recursion depth — incremented by callers as they descend.

    resolver: Resolver

    The merged resolver to look up the per-type render function on.

    The dispatch configuration for the active adapter.