import type { DomainObjectShape, Refable } from './Refable'; /** * a generic which extracts the primary keys of a domain object */ export type RefKeysPrimary, TShape extends DomainObjectShape = any, // todo: update DomainObjectShape -> DomainReferenceableInstance to enable extraction of primary and unique keys via types TPrimary extends readonly string[] = any, TUnique extends readonly string[] = any> = TDobj['primary'];