Module lib/validation-helpers
Functions
_isValidArray
- _isValidArray(array: any[], expectedLength?: number, type?: null | string): boolean
Parameters
array: any[]
expectedLength: number = 3
type: null | string = null
Returns boolean
_isValidProperty
- _isValidProperty(value: any, type?: null | string): boolean
Parameters
value: any
type: null | string = null
Returns boolean
_validateObject
- _validateObject(object: Record<string, any>): Record<string, any>
Parameters
object: Record<string, any>
Returns Record<string, any>