Skip to main content

readMockMeta

@webda/models


Function: readMockMeta()

readMockMeta(ctor): FieldMetaMap

Defined in: packages/models/src/mock.ts:140

Read the mock-meta map for a model class. Merges entries from the class and its prototype chain so a subclass's @Mock.* overrides the parent's.

Parameters​

ctor​

new (...args) => unknown

the model class constructor.

Returns​

FieldMetaMap

the merged fieldName → MockMeta map across the prototype chain.