{"_id":"monaco-types","_rev":"3-364799a87a981af8fae2c97c0be2f53a","name":"monaco-types","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"monaco-types","version":"0.1.0","keywords":["monaco","monaco-editor","monaco-editor-core","types","typescript"],"author":{"name":"Remco Haszing","email":"remcohaszing@gmail.com"},"license":"MIT","_id":"monaco-types@0.1.0","maintainers":[{"name":"remcohaszing","email":"remcohaszing@gmail.com"}],"homepage":"https://github.com/remcohaszing/monaco-types#readme","bugs":{"url":"https://github.com/remcohaszing/monaco-types/issues"},"dist":{"shasum":"3a3066aba499cb5923cd60efc736f3f14a169e10","tarball":"https://registry.npmjs.org/monaco-types/-/monaco-types-0.1.0.tgz","fileCount":6,"integrity":"sha512-aWK7SN9hAqNYi0WosPoMjenMeXJjwCxDibOqWffyQ/qXdzB/86xshGQobRferfmNz7BSNQ8GB0MD0oby9/5fTQ==","signatures":[{"sig":"MEUCIA6h9DmMJflsWZtcDSFUTUNIZtWZu7IjSmhPgNScTSZ8AiEA2do5WRZ9p6HeamjEWDydRfndlVRyFO79t7QzYrSKphc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4267,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAhHMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoFsg/9HkYVz1V2ubpv3Qu45LCqf3aRcmZ+dgzjeA1KxpUDaTj3CzUy\r\nxw1sNIpkQvx9Jw91fLBzaSrvm0I5vT9px6qFyNmgAwTrU6JbEKwLl7mrVihv\r\nLueM9Rw5nJSr3tXa+nJTnHVzMIlDcDvTDrGNM5yiH8/c6ltawAsOhTlSfb2f\r\nfCbK/GyzXTv7nrs2eY597oxS8gSgQNVytqe7MSLMbm2e8r2vg8hy83snfFN3\r\nQumzr78Ng755Ne/atQp1nicKzUIShELNpCMp8L0rAzX9SrP6wXWVdnGdpe1h\r\n6LlHqswnlTvNuB3y00Gb/C27c5K0Q/IgNvq62H/qPRQfaFo9z3FxQyZ8Ui7N\r\nz5xC113+Dae7bloSA8Re0x8X+BwxJEEXlpb/DA/nlZOpNM02lpturzBSZSGa\r\nuK3NabsAM0GOp6rMYRjHa7kn/SPJCn3YEbGZiNGzYhK0qbr6NK8tpLrBFd9d\r\nQEepLZMvNCcBnl0ZVzcsvieOurEjjFiXoqVN+gwClj/S4SOfInn3c/x1JBPI\r\nSec8BY/dofYHifB65mkEpisb21jYdlUV5aWTNa6ZV3ffrXXWkAqh6Aud8iXG\r\nIjDQ4poBfmoWKmP84XmbRIfEJ2xKKyGibvGRZrsKEUkT15C445ADixy1XQfq\r\nzyYeTZIxnCui9/0jhZNJpc23HCKFLfmz5EM=\r\n=fIXB\r\n-----END PGP SIGNATURE-----\r\n"},"_from":"file:monaco-types-0.1.0.tgz","types":"./index.d.ts","exports":"./index.js","funding":"https://github.com/sponsors/remcohaszing","scripts":{"test":"tsc"},"_npmUser":{"name":"remcohaszing","email":"remcohaszing@gmail.com"},"_resolved":"/home/runner/work/monaco-types/monaco-types/monaco-types-0.1.0.tgz","_integrity":"sha512-aWK7SN9hAqNYi0WosPoMjenMeXJjwCxDibOqWffyQ/qXdzB/86xshGQobRferfmNz7BSNQ8GB0MD0oby9/5fTQ==","repository":{"url":"git+https://github.com/remcohaszing/monaco-types.git","type":"git"},"_npmVersion":"9.5.0","description":"Type-only exports of Monaco editor","directories":{},"_nodeVersion":"18.14.2","_hasShrinkwrap":false,"devDependencies":{"prettier":"^2.0.0","typescript":"^4.0.0","monaco-editor":"*","monaco-editor-core":"*"},"_npmOperationalInternal":{"tmp":"tmp/monaco-types_0.1.0_1677857228055_0.7774619641988452","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"monaco-types","version":"0.1.1","keywords":["monaco","monaco-editor","monaco-editor-core","types","typescript"],"author":{"name":"Remco Haszing","email":"remcohaszing@gmail.com"},"license":"MIT","_id":"monaco-types@0.1.1","maintainers":[{"name":"remcohaszing","email":"remcohaszing@gmail.com"}],"homepage":"https://github.com/remcohaszing/monaco-types#readme","bugs":{"url":"https://github.com/remcohaszing/monaco-types/issues"},"dist":{"shasum":"6a1f7666f4820fcff3d394b3d20cee693d034705","tarball":"https://registry.npmjs.org/monaco-types/-/monaco-types-0.1.1.tgz","fileCount":6,"integrity":"sha512-cxYEIVVKQ46FsH96b91pn+9jdl/Bz8rJ08oNeUgK2DNMGQUMuZh77USqt+L0ns9Y+/aFItWyPBgj6bkZvtWCsQ==","signatures":[{"sig":"MEUCICEApNyudwmkDrJQc3km35yoPrWf3COsnNjm/cU+CMOHAiEAnf4kMXNnuFuBBdKnn8N2LhRU96gOQlYZW82eKnWBVGg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/monaco-types@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":4292},"_from":"file:monaco-types-0.1.1.tgz","types":"./index.d.ts","exports":"./index.js","funding":"https://github.com/sponsors/remcohaszing","scripts":{"test":"tsc"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:40500fe9-4c5c-45aa-9c54-d14ddf4e8214"}},"_resolved":"/home/runner/work/monaco-types/monaco-types/monaco-types-0.1.1.tgz","_integrity":"sha512-cxYEIVVKQ46FsH96b91pn+9jdl/Bz8rJ08oNeUgK2DNMGQUMuZh77USqt+L0ns9Y+/aFItWyPBgj6bkZvtWCsQ==","repository":{"url":"git+https://github.com/remcohaszing/monaco-types.git","type":"git"},"_npmVersion":"11.6.2","description":"Type-only exports of Monaco editor","directories":{},"_nodeVersion":"24.12.0","_hasShrinkwrap":false,"devDependencies":{"prettier":"^3.0.0","remark-cli":"^12.0.0","typescript":"^5.0.0","monaco-editor":"*","monaco-editor-core":"*","remark-preset-remcohaszing":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/monaco-types_0.1.1_1766569484119_0.558258130013076","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"monaco-types","version":"0.1.2","description":"Type-only exports of Monaco editor","repository":{"type":"git","url":"git+https://github.com/remcohaszing/monaco-types.git"},"author":{"name":"Remco Haszing","email":"remcohaszing@gmail.com"},"funding":"https://github.com/sponsors/remcohaszing","license":"MIT","bugs":{"url":"https://github.com/remcohaszing/monaco-types/issues"},"homepage":"https://github.com/remcohaszing/monaco-types#readme","exports":"./index.js","scripts":{"test":"tsc"},"keywords":["monaco","monaco-editor","monaco-editor-core","types","typescript"],"devDependencies":{"monaco-editor":"*","monaco-editor-core":"*","prettier":"^3.0.0","remark-cli":"^12.0.0","remark-preset-remcohaszing":"^3.0.0","typescript":"^5.0.0"},"types":"./index.d.ts","_id":"monaco-types@0.1.2","_integrity":"sha512-8LwfrlWXsedHwAL41xhXyqzPibS8IqPuIXr9NdORhonS495c2/wky+sI1PRLvMCuiI0nqC2NH1six9hdiRY4Xg==","_resolved":"/home/runner/work/monaco-types/monaco-types/monaco-types-0.1.2.tgz","_from":"file:monaco-types-0.1.2.tgz","_nodeVersion":"24.13.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-8LwfrlWXsedHwAL41xhXyqzPibS8IqPuIXr9NdORhonS495c2/wky+sI1PRLvMCuiI0nqC2NH1six9hdiRY4Xg==","shasum":"77cf7bbd14f7ba7e5f2210cc61ae28611fcae1bc","tarball":"https://registry.npmjs.org/monaco-types/-/monaco-types-0.1.2.tgz","fileCount":6,"unpackedSize":4320,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/monaco-types@0.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICYuW8uCZ95+8A5TgF67ErLqt4CIn5HyVAYRYmSNLIFlAiBsQBWI/jmGM8vg5hUa2/yS4/6PSsJAI1oS+/ksl2cdfQ=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:40500fe9-4c5c-45aa-9c54-d14ddf4e8214"}},"directories":{},"maintainers":[{"name":"remcohaszing","email":"remcohaszing@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/monaco-types_0.1.2_1771595790983_0.5940743427021329"},"_hasShrinkwrap":false}},"time":{"created":"2023-03-03T15:27:08.055Z","modified":"2026-02-20T13:56:31.739Z","0.1.0":"2023-03-03T15:27:08.232Z","0.1.1":"2025-12-24T09:44:44.258Z","0.1.2":"2026-02-20T13:56:31.130Z"},"bugs":{"url":"https://github.com/remcohaszing/monaco-types/issues"},"author":{"name":"Remco Haszing","email":"remcohaszing@gmail.com"},"license":"MIT","homepage":"https://github.com/remcohaszing/monaco-types#readme","keywords":["monaco","monaco-editor","monaco-editor-core","types","typescript"],"repository":{"type":"git","url":"git+https://github.com/remcohaszing/monaco-types.git"},"description":"Type-only exports of Monaco editor","maintainers":[{"name":"remcohaszing","email":"remcohaszing@gmail.com"}],"readme":"# monaco-types\n\n[![github actions](https://github.com/remcohaszing/monaco-types/actions/workflows/ci.yaml/badge.svg)](https://github.com/remcohaszing/monaco-types/actions/workflows/ci.yaml)\n[![npm version](https://img.shields.io/npm/v/monaco-types)](https://www.npmjs.com/package/monaco-types)\n[![npm downloads](https://img.shields.io/npm/dm/monaco-types)](https://www.npmjs.com/package/monaco-types)\n\nUsers of Monaco editor may insert it into their webpage via multiple sources, for example from the\n`monaco-editor` or `monaco-editor-core` package, from a CDN, or from a third party source.\n\nThis package provides type-only exports of Monaco editor from either `monaco-editor` or\n`monaco-editor-core`, whatever is available.\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Compatibility](#compatibility)\n- [License](#license)\n\n## Installation\n\n```sh\nnpm install monaco-types\n```\n\n## Usage\n\nInstead of importing from `monaco-editor` or `monaco-editor-core`, import all type definitions from\n`monaco-types`. This will allow you to write type annotations:\n\n```ts\nimport { MarkerSeverity } from 'monaco-types'\n\nlet severity: MarkerSeverity\n```\n\nBut TypeScript will show an error when using the import as a value\n\n```ts\nimport { MarkerSeverity } from 'monaco-types'\n\nlet severity: MarkerSeverity\n```\n\nAlso your user will only have to install either `monaco-editor` or `monaco-editor-core` to get type\ndefinitions, but you don’t have to enforce either on them.\n\nIn order to support this, your library needs to accept `MonacoEditor` as an argument instead of\nimporting. For example:\n\n```ts\nimport { IDisposable, MonacoEditor } from 'monaco-types'\n\nexport function configureMyPlugin(monaco: MonacoEditor): IDisposable {\n  // Use monaco here.\n}\n```\n\n## Compatibility\n\nThis package follows the DefinitelyTyped\n[support window](https://github.com/DefinitelyTyped/DefinitelyTyped#support-window).\n\n## License\n\n[MIT](LICENSE.md) © [Remco Haszing](https://github.com/remcohaszing)\n","readmeFilename":"README.md"}