Home
Using Smart NgRX
Demo Walkthrough
API
@smarttools/smart-ngrx / Function

entityDefinitionCache

Generic types:T

This registers the adapter for the entity definition.

See Also

  • EntityDefinition

Presentation

function entityDefinitionCache(
  featureName: string,
  entityName: string,
  entityDefinition?: SmartEntityDefinition<T> | undefined,
): SmartValidatedEntityDefinition<T>;

Returns

SmartValidatedEntityDefinition<T> -

the entity definition

Parameters

NameTypeDescription
featureName
string

the feature the entity belongs to

entityName
string

the entity name to register the adapter for

entityDefinition
SmartEntityDefinition<T> | undefined

the SmartEntityDefinition to register the adapter for