New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@skyfox2000/vite-plugin-auto-import-dts

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@skyfox2000/vite-plugin-auto-import-dts

A Vite plugin to auto-import and manage TypeScript declarations.

latest
Source
npmnpm
Version
1.0.9
Version published
Maintainers
1
Created
Source

vite-plugin-auto-import-dts

A Vite plugin to auto-import and manage TypeScript declarations.

Installation

npm install @skyfox2000/vite-plugin-auto-import-dts --save-dev

Usage

// vite.config.ts
import autoImportDTS from "@skyfox2000/vite-plugin-auto-import-dts";

export default {
   plugins: [
      autoImportDTS({
         path: "./src/views",
         target: "./src/types/global.d.ts"
      })
   ]
};

Options

This plugin accepts the following configuration options:

OptionTypeDefaultDescription
pathstring'./src/views'The directory or directories to scan for .d.ts files. You can specify a single directory or an array of paths.
targetstring'./src/types/global.d.ts'The target file where the generated global type declarations will be stored. If the target path does not exist, an error will be thrown. Make sure to manually create the necessary directories.

Keywords

vite

FAQs

Package last updated on 23 Mar 2025

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