@8base/validate

This library is used by the other 8base service packages to validate forms. You can also use it to make your own form validation etc.

Usage no npm install needed!

<script type="module">
  import 8baseValidate from 'https://cdn.skypack.dev/@8base/validate';
</script>

README

8base Validate

This library is used by the other 8base service packages to validate forms. You can also use it to make your own form validation etc.

API

Table of Contents

validatorFacade

ValidatorFacade creates a validation function based on field metadata

Type: function (field: Field): function (value: any): ValidationError?

Parameters

  • field Field metadata

Returns Function Validation function