Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vite-plugin-dts

Package Overview
Dependencies
Maintainers
1
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-dts

vite-plugin-dts

  • 3.7.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
495K
decreased by-41.62%
Maintainers
1
Weekly downloads
 
Created

What is vite-plugin-dts?

vite-plugin-dts is a Vite plugin that generates TypeScript declaration files (d.ts) for your project. It helps in ensuring type safety and better developer experience by providing type definitions for your code.

What are vite-plugin-dts's main functionalities?

Generate TypeScript Declarations

This feature allows you to automatically generate TypeScript declaration files for your project. By including the plugin in your Vite configuration, it will generate .d.ts files for your TypeScript code.

import dts from 'vite-plugin-dts';

export default {
  plugins: [dts()]
};

Custom Output Directory

You can specify a custom output directory for the generated declaration files. This is useful if you want to organize your type definitions in a specific folder.

import dts from 'vite-plugin-dts';

export default {
  plugins: [
    dts({
      outputDir: 'types'
    })
  ]
};

Include/Exclude Specific Files

This feature allows you to include or exclude specific files or folders from the declaration generation process. You can use glob patterns to specify the files to include or exclude.

import dts from 'vite-plugin-dts';

export default {
  plugins: [
    dts({
      include: ['src/**/*.ts'],
      exclude: ['src/excluded-folder/**']
    })
  ]
};

Other packages similar to vite-plugin-dts

Keywords

FAQs

Package last updated on 21 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc