Model
Callable
Type parameters
- T: UnknownModel
Parameters
packageName: string
The name of the package under which the model is registered. Selecting a unique package name helps avoid collisions between same model class names across different libraries. You will reuse the same package name throughout your library for different Octo components you create.
modelName: keyof BaseModelSchemas
The name of the base model you are extending, e.g.
regionfor Region.schema: Constructable<ModelSchema<T>>
The schema of the model.
Returns (constructor: any) => void
The decorated class.
Parameters
constructor: any
Returns void
A
@Modelis a class decorator and must be placed on top of a class representing a model.Decorators