{"id":15416592,"url":"https://github.com/remcohaszing/monaco-types","last_synced_at":"2025-08-16T12:07:55.676Z","repository":{"id":102297514,"uuid":"609196032","full_name":"remcohaszing/monaco-types","owner":"remcohaszing","description":"Type-only exports of Monaco editor","archived":false,"fork":false,"pushed_at":"2023-03-03T15:26:27.000Z","size":7,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-09T11:21:04.275Z","etag":null,"topics":["monaco","monaco-editor","monaco-editor-core","types","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/remcohaszing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-03T15:22:13.000Z","updated_at":"2024-05-12T01:07:32.000Z","dependencies_parsed_at":"2023-03-13T15:23:00.577Z","dependency_job_id":null,"html_url":"https://github.com/remcohaszing/monaco-types","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/remcohaszing/monaco-types","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remcohaszing%2Fmonaco-types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remcohaszing%2Fmonaco-types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remcohaszing%2Fmonaco-types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remcohaszing%2Fmonaco-types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remcohaszing","download_url":"https://codeload.github.com/remcohaszing/monaco-types/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remcohaszing%2Fmonaco-types/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269748993,"owners_count":24469275,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["monaco","monaco-editor","monaco-editor-core","types","typescript"],"created_at":"2024-10-01T17:12:33.915Z","updated_at":"2025-08-16T12:07:55.653Z","avatar_url":"https://github.com/remcohaszing.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"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](https://img.shields.io/npm/v/monaco-types)](https://www.npmjs.com/package/monaco-types)\n[![prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io)\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## 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### License\n\n[MIT](LICENSE.md) @ [Remco Haszing](https://github.com/remcohaszing)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremcohaszing%2Fmonaco-types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremcohaszing%2Fmonaco-types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremcohaszing%2Fmonaco-types/lists"}