UNPKG

domain-objects

Version:

A simple, convenient way to represent domain objects, leverage domain knowledge, and add runtime validation in your code base.

4 lines (3 loc) 448 B
import { DomainObjectShape } from '../DomainReferenceable'; import { DomainReferenceByPivotKey } from './DomainPivotKey'; export declare const unpivotRef: <TDobj extends DomainObjectShape, TPivotKey extends keyof TDobj, TPivotValue extends keyof TDobj>(ref: DomainReferenceByPivotKey<TDobj, TPivotKey, TPivotValue>, key: TPivotKey, value: TPivotValue) => { [key in TPivotKey]: TDobj[TPivotKey]; } & { [key_1 in TPivotValue]: TDobj[TPivotValue]; };