Package Exports
- monaco-zod-subset-mode
- monaco-zod-subset-mode/dist/index.cjs.js
- monaco-zod-subset-mode/dist/index.esm.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (monaco-zod-subset-mode) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
monaco-zod-subset-mode
A custom language definition and mode for the Monaco Editor that enables syntax highlighting, validation, and autocompletion for a subset of Zod schemas.
Features
- Syntax highlighting for Zod types and methods
- Validation against disallowed constructs (e.g.,
.refine()
, variables) - Autocompletion for common Zod methods
Getting Started
- Install dependencies:
pnpm install
- Build the project:
pnpm build && pnpm bundle
- To test the editor, run a local web server from the project root (e.g.,
python -m http.server
) and openexample/index.html
in your browser.
License
This project is licensed under the MIT License - see the LICENSE file for details.