aboutsummaryrefslogtreecommitdiffstats
path: root/language-web/package.json
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2021-11-16 03:00:45 +0100
committerLibravatar Kristóf Marussy <kristof@marussy.com>2021-11-16 03:11:00 +0100
commit5810a7eb3b19ef9868db170c9214686bfc613eee (patch)
treeda122997d4ad58f4104d0f84b06a00fe14e7ad02 /language-web/package.json
parentfeat(lang): basic formatting (diff)
downloadrefinery-5810a7eb3b19ef9868db170c9214686bfc613eee.tar.gz
refinery-5810a7eb3b19ef9868db170c9214686bfc613eee.tar.zst
refinery-5810a7eb3b19ef9868db170c9214686bfc613eee.zip
chore(web): json validation with zod
Use the zod library instead of manually written type assertions for validating json messages from the server. This makes it easier to add and handle new messages.
Diffstat (limited to 'language-web/package.json')
-rw-r--r--language-web/package.json3
1 files changed, 2 insertions, 1 deletions
diff --git a/language-web/package.json b/language-web/package.json
index 3362a47a..54aad155 100644
--- a/language-web/package.json
+++ b/language-web/package.json
@@ -95,6 +95,7 @@
95 "mobx-react-lite": "^3.2.1", 95 "mobx-react-lite": "^3.2.1",
96 "nanoid": "^3.1.30", 96 "nanoid": "^3.1.30",
97 "react": "^17.0.2", 97 "react": "^17.0.2",
98 "react-dom": "^17.0.2" 98 "react-dom": "^17.0.2",
99 "zod": "^3.11.6"
99 } 100 }
100} 101}