convector-core-model

This module contains the base model information along with the decorators needed for data validation

Index

Type aliases

FlatConvectorModel

FlatConvectorModel: object

Type declaration

Variables

Const defaultMetadataKey

defaultMetadataKey: unique symbol = Symbol('default')

Const requiredMetadataKey

requiredMetadataKey: unique symbol = Symbol('required')

Const validateMetadataKey

validateMetadataKey: unique symbol = Symbol('validate')

Functions

Default

  • Default<T>(defaultValue: T): (Anonymous function)

ReadOnly

  • ReadOnly(): (Anonymous function)

Required

  • Required(): (Anonymous function)

Validate

  • Validate<T>(input: Schema<T> | object): (Anonymous function)

ensureRequired

  • ensureRequired(obj: any): boolean

getDefaults

  • getDefaults(obj: any): object

getPropertiesValidation

  • getPropertiesValidation(obj: any): object

getValidatedProperties

  • getValidatedProperties(obj: any): string[]