Function model

  • Decorator that marks this class (which MUST inherit from the Model or DataModel abstract classes) as a model.

    Parameters

    • name: string

      Unique name for the model type. Note that this name must be unique for your whole application, so it is usually a good idea to use some prefix unique to your application domain.

    Returns (<MC>(clazz, ...args) => MC)