UNPKG
payload-field-validators
Version:
latest (0.2.3)
0.2.3
0.2.2
0.2.1
0.2.0
0.1.0
Easy validation handlers for Payload CMS collection's fields
payload-field-validators
/
dist
/
esm
/
plugin
/
index.js
14 lines
(13 loc)
•
271 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// src/plugin/index.ts
var
payloadFieldValidatorsPlugin
= (
pluginOptions
) =>
(
config
) =>
{
if
(!config.
collections
) { config.
collections
= []; }
if
(pluginOptions.
disabled
) {
return
config; }
return
config; };
export
{ payloadFieldValidatorsPlugin };