unplugin-json-dts
v1.2.1
Published
Automatically generate better typings for json files. Supports json modules
Downloads
2,510
Maintainers
Readme
unplugin-json-dts
Automatically generate better typings for json files. Supports json modules.
Installation
npm i unplugin-json-dts -D
// vite.config.ts
import jsonDts from 'unplugin-json-dts/vite'
export default defineConfig({
plugins: [
jsonDts(),
],
})
// rollup.config.js
import jsonDts from 'unplugin-json-dts/rollup'
export default {
plugins: [
jsonDts(),
],
}
// webpack.config.js
module.exports = {
/* ... */
plugins: [
require('unplugin-json-dts/webpack')()
]
}