(entity: T, meta: EntityMetadata<T>)
| 41 | |
| 42 | /** @internal */ |
| 43 | export function validateEntity<T extends object>(entity: T, meta: EntityMetadata<T>): void { |
| 44 | for (const prop of meta.validateProps) { |
| 45 | validateProperty(prop, getValue(entity, prop), entity); |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | /** @internal */ |
| 50 | export function validateParams(params: any, type = 'search condition', field?: string): void { |
no test coverage detected