UNPKG

@th3hero/request-validator

Version:

🚀 Lightweight, fast & flexible request validation library for Node.js/Express/Next.js with TypeScript support. Features 20+ validation rules, database integration, file upload validation, and zero external dependencies. Perfect for API validation, form v

11 lines • 339 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getDatabase = exports.setDatabase = void 0; let dbPool = null; const setDatabase = (pool) => { dbPool = pool; }; exports.setDatabase = setDatabase; const getDatabase = () => dbPool; exports.getDatabase = getDatabase; //# sourceMappingURL=types.js.map