# @elonehoo/vite-plugin-type-ts

> Generate declaration files (`*.ts(x)` or `.vue` source files when using vite in [library mode](https://vitejs.dev/guide/build.html#library-mode) `d.ts`).

Latest version **0.0.3-beta.0** (published 2022-11-26) · 0 weekly downloads

## Install

```sh
npm install @elonehoo/vite-plugin-type-ts
pnpm add @elonehoo/vite-plugin-type-ts
yarn add @elonehoo/vite-plugin-type-ts
bun add @elonehoo/vite-plugin-type-ts
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3-beta.0 |
| Published | 2022-11-26 |
| First published | 2022-07-31 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 7 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | elonehoo |

## Links

- npm: https://www.npmjs.com/package/@elonehoo/vite-plugin-type-ts
- Repository: https://github.com/elonehoo/vite-plugin-type-ts
- Homepage: https://github.com/elonehoo/vite-plugin-type-ts#readme
- Issues: https://github.com/elonehoo/vite-plugin-type-ts/issues
- npm.io page: https://npm.io/package/@elonehoo/vite-plugin-type-ts

## Dependencies (7)

- [chalk](https://npm.io/package/chalk.md) ^5.1.2
- [debug](https://npm.io/package/debug.md) ^4.3.4
- [fs-extra](https://npm.io/package/fs-extra.md) ^10.1.0
- [ts-morph](https://npm.io/package/ts-morph.md) ^17.0.1
- [fast-glob](https://npm.io/package/fast-glob.md) ^3.2.12
- [@microsoft/api-extractor](https://npm.io/package/@microsoft/api-extractor.md) ^7.33.6
- [@rushstack/node-core-library](https://npm.io/package/@rushstack/node-core-library.md) ^3.53.2

## Recent versions

- 0.0.3-beta.0 (latest) — 2022-11-26
- 0.0.1 — 2022-07-31
- 0.0.1-beta.16 — 2022-07-31
- 0.0.1-beta.15 — 2022-07-31
- 0.0.1-beta.13 — 2022-07-31
- 0.0.1-beta.12 — 2022-07-31
- 0.0.1-beta.10 — 2022-07-31
- 0.0.1-beta.9 — 2022-07-31
- 0.0.1-beta.8 — 2022-07-31
- 0.0.1-beta.6 — 2022-07-31
- 0.0.1-beta.5 — 2022-07-31
- 0.0.1-beta.3 — 2022-07-31
- 0.0.1-beta.2 — 2022-07-31
- 0.0.1-beta.1 — 2022-07-31
- 0.0.1-beta.0 — 2022-07-31

## README

# vite-plugin-type-ts

Generate declaration files (`*.ts(x)` or `.vue` source files when using vite in [library mode](https://vitejs.dev/guide/build.html#library-mode) `d.ts`).

## install

```shell
# npm
npm install @elonehoo/vite-plugin-type-ts
# yarn
yarn add @elonehoo/vite-plugin-type-ts
# pnpm
pnpm install @elonehoo/vite-plugin-type-ts
```

## usage

```ts
import path from 'path'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import distCss from '@elonehoo/vite-plugin-dist-css'
import types from '@elonehoo/vite-plugin-type-ts'

export default defineConfig({
  resolve: {
    alias: {
      '~/': `${path.resolve(__dirname, 'src')}/`,
    },
  },
  plugins: [
    vue({
      reactivityTransform: true,
    }),
    types(),
  ],
})

```

---
_Source: https://npm.io/package/@elonehoo/vite-plugin-type-ts · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
