{"name":"@mdit-vue/types","version":"2.1.4","keywords":["markdown-it","vue","types"],"author":"meteorlxy <meteor.lxy@foxmail.com>","license":"MIT","_id":"@mdit-vue/types@2.1.4","maintainers":[{"name":"meteorlxy","email":"meteor.lxy@foxmail.com"}],"homepage":"https://github.com/mdit-vue","bugs":{"url":"https://github.com/mdit-vue/mdit-vue/issues"},"dist":{"shasum":"9f4ea85fe09d3144ac77665bcdee7962ef487631","tarball":"http://registry-npm.ywwl.com/@mdit-vue/types/download/@mdit-vue/types-2.1.4.tgz","fileCount":8,"integrity":"sha512-QiGNZslz+zXUs2X8D11UQhB4KAMZ0DZghvYxa7+1B+VMLcDtz//XHpWbcuexjzE3kBXSxIUTPH3eSQCa0puZHA==","signatures":[{"sig":"MEQCIAjV7IMP4Gmbj40ECmVrI+MdfT5H1A8bwxI5kWhDRF2rAiBbXM57X5wl9B0SA6/jNpBRWKcGyQk07XYRDjNKd/adxA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4653,"size":1903,"noattachment":false,"key":"/@mdit-vue/types/-/@mdit-vue/types-2.1.4.tgz"},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"01a6daa37fff48ea3992becfd4ba8c0f97a605ad","scripts":{"build":"unbuild"},"_npmUser":{"name":"meteorlxy","email":"meteor.lxy@foxmail.com"},"repository":{"url":"git+https://github.com/mdit-vue/mdit-vue.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v20.12.2+arm64 (darwin)","description":"Shared types definition of mdit-vue","directories":{},"_nodeVersion":"20.12.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/types_2.1.4_1744265847937_0.2648443662244233","host":"s3://npm-registry-packages-npm-production"},"readme":"# @mdit-vue/types\n\n[![npm](https://badgen.net/npm/v/@mdit-vue/types)](https://www.npmjs.com/package/@mdit-vue/types)\n\nShared types definition of mdit-vue.\n\n## Install\n\n```sh\nnpm i @mdit-vue/types\n```\n\n## Usage\n\nAdd more properties to `env` via [TypeScript module augmentation](https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation):\n\n```ts\ndeclare module '@mdit-vue/types' {\n  interface MarkdownItEnv {\n    foo?: string[];\n  }\n}\n```\n\n```ts\nimport type { MarkdownItEnv } from '@mdit-vue/types';\nimport MarkdownIt from 'markdown-it';\n\nconst md = MarkdownIt({ html: true });\nconst env: MarkdownItEnv = {};\nconst rendered = md.render('raw markdown text', env);\n```\n","publish_time":1744265848109,"_cnpm_publish_time":1744265848109,"dist-tags":{"latest":"4.0.0"}}