@athenna/validator
Version:
The Athenna validation solution. Built on top of VineJS.
16 lines (15 loc) • 452 B
TypeScript
/**
* @athenna/validator
*
* (c) João Lenon <lenon@athenna.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import type { SchemaTypes } from '#src/types';
export declare abstract class BaseValidator {
validator: import("#src").Vine;
abstract schema: SchemaTypes;
abstract handle(data: any): Promise<void>;
validate(data: any): Promise<any>;
}