JSPM

monaco-zod-subset-mode

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q11414F
  • License MIT

A custom language definition and mode for the Monaco Editor that enables syntax highlighting, validation, and autocompletion for a subset of Zod schemas.

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

  1. Install dependencies: pnpm install
  2. Build the project: pnpm build && pnpm bundle
  3. To test the editor, run a local web server from the project root (e.g., python -m http.server) and open example/index.html in your browser.

License

This project is licensed under the MIT License - see the LICENSE file for details.