Periodic Table Database Schema - v0.6.4
    Preparing search index...
    CollectionValue: [T] extends [Single<infer P>]
        ? P
        : [T] extends [Group<infer G>]
            ? { [GK in keyof G]: Collection<G[GK]> }
            : [T] extends [Property]
                ? T
                : [T] extends [Distinct<infer D>]
                    ? Distinct<D>
                    : [T] extends [object] ? Expand<T> : T

    Helper type that recursively resolves a value within a collection. It differentiates between nested properties, groups, distinct values, and general objects.

    Type Parameters

    • T

      The type to be processed into a collection value.