rhf-error-util
Version:
Lightweight utility hook for safely accessing errors in react-hook-form (nested or flat)
49 lines • 1.48 kB
JSON
{
"name": "rhf-error-util",
"version": "1.0.0",
"description": "Lightweight utility hook for safely accessing errors in react-hook-form (nested or flat)",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build:types": "dts-bundle-generator -o dist/index.d.ts src/index.ts",
"build:js": "tsup src/index.ts --format esm,cjs --minify",
"build:clean": "find dist -type f -name '*.d.ts' ! -name 'index.d.ts' -delete",
"build": "tsc && npm run build:js && npm run build:types && npm run build:clean",
"dev": "tsup src/index.ts --watch"
},
"devDependencies": {
"dts-bundle-generator": "^9.5.1",
"tsup": "^7.0.0",
"typescript": "^5"
},
"keywords": [
"react-hook-form",
"react-hook-form-errors",
"react-hook-form-error",
"form-error",
"form-validation",
"field-error",
"nested-error",
"get-form-error",
"typescript",
"react",
"hook",
"form-hook",
"validation-error"
],
"files": [
"dist",
"README.md",
"LICENSE"
],
"author": "Talha Nazir",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/talhanr/rhf-error-util"
},
"bugs": {
"url": "https://github.com/talhanr/rhf-error-util/issues"
},
"homepage": "https://github.com/talhanr/rhf-error-util#readme"
}