domain-objects
Version:
A simple, convenient way to represent domain objects, leverage domain knowledge, and add runtime validation in your code base.
12 lines (11 loc) • 456 B
TypeScript
import type { DomainObject } from '../instantiation/DomainObject';
/**
* returns the readonly keys defined on the class of the domain object
*
* note,
* - this function returns the union of metadata keys and explicit readonly keys
* - only domain entities support non-metadata readonly attributes, due to their nature
*/
export declare const getReadonlyKeys: (obj: DomainObject<any>, options?: {
nameOfFunctionNeededFor?: string;
}) => string[];