{"name":"@mdit-vue/types","version":"3.0.2","description":"Shared types definition of mdit-vue","keywords":["markdown-it","vue","types"],"homepage":"https://github.com/mdit-vue","bugs":{"url":"https://github.com/mdit-vue/mdit-vue/issues"},"repository":{"type":"git","url":"git+https://github.com/mdit-vue/mdit-vue.git"},"license":"MIT","author":{"name":"meteorlxy","email":"meteor.lxy@foxmail.com"},"type":"module","exports":{".":"./dist/index.js","./package.json":"./package.json"},"main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsdown","clean":"rimraf ./dist"},"devDependencies":{"tsdown":"^0.14.1"},"engines":{"node":">=20.0.0"},"publishConfig":{"access":"public"},"gitHead":"3b5332d09fbd927319bd8be3ba3b86b3d12d1ec8","_id":"@mdit-vue/types@3.0.2","_nodeVersion":"22.17.0","_npmVersion":"lerna/4.7.0/node@v22.17.0+arm64 (darwin)","dist":{"integrity":"sha512-00aAZ0F0NLik6I6Yba2emGbHLxv+QYrPH00qQ5dFKXlAo1Ll2RHDXwY7nN2WAfrx2pP+WrvSRFTGFCNGdzBDHw==","shasum":"bcc569c5435ecb38b750a58ce69e555cf0021120","tarball":"http://registry-npm.ywwl.com/@mdit-vue/types/download/@mdit-vue/types-3.0.2.tgz","fileCount":5,"unpackedSize":3351,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFrNmEXH/xmcgBWEGA4cYhUKHFwQ6uSITRlmrIcLg8OCAiBXQqoQxzjTfTy9nY1vXS3ckCIgoFs/PsfcsmJZXlX08w=="}],"size":1840,"noattachment":false,"key":"/@mdit-vue/types/-/@mdit-vue/types-3.0.2.tgz"},"_npmUser":{"name":"meteorlxy","email":"meteor.lxy@foxmail.com"},"directories":{},"maintainers":[{"name":"meteorlxy","email":"meteor.lxy@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/types_3.0.2_1754927612130_0.4143438107615729"},"_hasShrinkwrap":false,"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":1754927612311,"_cnpm_publish_time":1754927612311,"dist-tags":{"latest":"4.0.0"}}