UNPKG

@envelop/core

Version:

This is the core package for Envelop. You can find a complete documentation here: https://github.com/n1ru4l/envelop

12 lines (11 loc) 313 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.useValidationRule = void 0; const useValidationRule = (rule) => { return { onValidate({ addValidationRule }) { addValidationRule(rule); }, }; }; exports.useValidationRule = useValidationRule;