From 0f2744789cf35e8339536191097d6ba0f5fa57e6 Mon Sep 17 00:00:00 2001 From: Robby6Strings Date: Tue, 9 Apr 2024 07:53:24 +1200 Subject: [PATCH] vite-plugin-kaioken - add types declaration --- packages/vite-plugin-kaioken/package.json | 1 + packages/vite-plugin-kaioken/types.d.ts | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 packages/vite-plugin-kaioken/types.d.ts diff --git a/packages/vite-plugin-kaioken/package.json b/packages/vite-plugin-kaioken/package.json index 88e124ab..aee78a43 100644 --- a/packages/vite-plugin-kaioken/package.json +++ b/packages/vite-plugin-kaioken/package.json @@ -4,6 +4,7 @@ "description": "", "main": "dist/index.js", "type": "module", + "types": "types.d.ts", "scripts": { "test": "echo \"Error: no test specified\"", "build": "tsx build.ts" diff --git a/packages/vite-plugin-kaioken/types.d.ts b/packages/vite-plugin-kaioken/types.d.ts new file mode 100644 index 00000000..49d3f6f6 --- /dev/null +++ b/packages/vite-plugin-kaioken/types.d.ts @@ -0,0 +1,3 @@ +import type { Plugin } from "vite" +declare const plugin: (options?: { devtools: boolean }) => Plugin +export default plugin