domain-objects
Version:
A simple, convenient way to represent domain objects, leverage domain knowledge, and add runtime validation in your code base.
10 lines (9 loc) • 439 B
TypeScript
import { DomainObject } from '../DomainObject';
export declare class NestedDomainObjectHydrationError extends Error {
constructor(message: string, metadata: Record<string, any>);
}
export declare const hydrateNestedDomainObjects: ({ props, nested, domainObjectName, }: {
props: Record<string, any>;
nested: Record<string, typeof DomainObject | (typeof DomainObject)[]>;
domainObjectName: string;
}) => Record<string, any>;