zibri
    Preparing search index...

    Type Alias NestedComponentEntry

    A custom component encountered during the walk, with its assigned instance prefix and the resolved prop bindings needed to emit its script declarations.

    type NestedComponentEntry = {
        destructureRenameMap: Map<string, string>;
        fn: Function;
        inlineBindings: Record<string, string>;
        parentPrefix: string | undefined;
        prefix: string;
        propBindings: Record<string, string>;
        propsParamName: string | undefined;
        propValues: Record<string, unknown>;
    }
    Index

    Properties

    destructureRenameMap: Map<string, string>

    The component's own destructuring rename map (localName -> propName). Needed to map prop names back to the local name used inside the component body.

    fn: Function

    The component function.

    inlineBindings: Record<string, string>

    Any bindings that are/should be inlined.

    parentPrefix: string | undefined

    The prefix of the immediately enclosing custom component, if any.

    prefix: string

    Unique instance prefix, e.g. 'testButton0_'.

    propBindings: Record<string, string>

    LocalName to ResolvedName mappings at the time of the walk, before any prefix renaming is applied.

    E.g. { onClick: 'increaseCount' } Or { __propsObj_props: '{"onClick":"increaseCount"}' } for non-destructured params.

    propsParamName: string | undefined

    If the component uses a non-destructured param (e.g. props), its name.

    propValues: Record<string, unknown>

    PropName -> actual value for non-handler, non-children props.