Skip to main content

classifyStoredType

@webda/core


Function: classifyStoredType()

classifyStoredType(stored, tableRoot?, resolver?): StoredTypeClassification

Defined in: packages/core/src/application/model-types.ts:75

Classify a stored __type

A type resolving to a strict ancestor of the table root is legacy, to be stamped with the root identifier: the row belongs to the root like an untyped row.

Parameters​

stored​

unknown

the stored value (undefined, null or empty for an untyped row)

tableRoot?​

ModelClass

the model owning the untyped rows of the table

resolver?​

ModelTypeResolver = ...

the resolver, the installed one by default

Returns​

StoredTypeClassification

the classification