Traqula
    Preparing search index...

    Type Alias GenRulesToObject<T, Names, Agg>

    GenRulesToObject: T extends readonly [infer First, ...(infer Rest)]
        ? First extends GeneratorRule
            ? Rest extends readonly GeneratorRule[]
                ? GenRulesToObject<
                    Rest,
                    Names,
                    {
                        [K in keyof Agg
                        | First["name"]]: K extends First["name"] ? First : Agg[K]
                    },
                >
                : never
            : never
        : GenRuleMap<Names> & Agg

    Convert a list of RuleDefs to a Record with the name of the RuleDef as the key, matching the RuleDefMap type.

    Type Parameters