Type Alias RelationshipProperties<T>

RelationshipProperties: Extract<
    {
        [K in keyof T]: NonNullable<T[K]> extends default | default[]
            ? K
            : never
    }[keyof T],
    string,
>

Extracts the keys of a DynaRecord type T whose properties are either a DynaRecord or an array of DynaRecord.

This type is used to identify properties in a DynaRecord that represent relationships to other entities.

Type Parameters

  • T extends default

    The DynaRecord type to evaluate.

A union of property names in T that represent relationships.