Skip to main content

Type alias: ModelConfig

ModelConfig: object

Configuration of a model class.

Index signature

[K: string]: any

Type declaration

cloneValue()?

optional cloneValue: <T>(value) => T

Type parameters

T

Parameters

value: T

Returns

T

compareValue()?

optional compareValue: (nextValue, prevValue) => boolean

Parameters

nextValue: unknown

prevValue: unknown

Returns

boolean

guessAlias?

optional guessAlias: Transformer<string>

guessIdPath?

optional guessIdPath: Transformer <ModelIdType>

guessPath?

optional guessPath: Transformer<string>

guessRelationPath?

optional guessRelationPath: Transformer <ModelRelation, string>

guessRelationType?

optional guessRelationType: Transformer <ModelRelation, string>

path?

optional path: Optional<string>

strict?

optional strict: boolean

strictProperties?

optional strictProperties: boolean

strictReadOnly?

optional strictReadOnly: boolean

Source

packages/core/src/model/types.ts:30