Skip to main content

Model

Callable

  • Model(): (constructor: any) => void

  • A @Model is a class decorator to be placed on top of a class that represents a model.

    • A model must extend the AModel class.
    @example
    @Model()
    export class MyModel extends AModel<IMyModel, MyModel> { ... }
    @see

    Definition of Models.


    Returns (constructor: any) => void

    The decorated class.

      • (constructor: any): void
      • Parameters

        • constructor: any

        Returns void