dyna-record
    Preparing search index...

    Type Alias ExtractForeignKeyTarget<Value>

    ExtractForeignKeyTarget: NonNullable<Value> extends ForeignKey<infer Target>
        ? Target
        : NonNullable<Value> extends NullableForeignKeyBrand<infer Target>
            ? Target
            : never

    The entity a ForeignKey or NullableForeignKey attribute references, read from its declared type: Customer for ForeignKey<Customer>, and DynaRecord for a bare ForeignKey. Resolves to never for a value that is not a foreign key.

    Type Parameters

    • Value

      The attribute's declared type.