This commit is contained in:
2025-05-27 16:37:49 +08:00
commit e44790e6ad
466 changed files with 65067 additions and 0 deletions

9
plop-templates/utils.js Normal file
View File

@ -0,0 +1,9 @@
exports.notEmpty = name => {
return v => {
if (!v || v.trim === '') {
return `${name} is required`
} else {
return true
}
}
}