From c4145b7352359c79b8ba7c01a1c4afeace4dbc7c Mon Sep 17 00:00:00 2001 From: rk_zhang <40221744+qmhc@users.noreply.github.com> Date: Wed, 10 Nov 2021 16:47:17 +0800 Subject: [PATCH] fix: take unused error when using setup-script --- src/plugin.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugin.ts b/src/plugin.ts index 40d0010..dba5577 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -157,6 +157,9 @@ export function dtsPlugin(options: PluginOptions = {}): Plugin { outDir: '.', // #27 declarationDir option will make no declaration file generated declarationDir: null, + // compile vue setup script will generate expose parameter for setup function + // although user never use it which will get an unexpected unused error + noUnusedParameters: false, declaration: true, noEmit: false, emitDeclarationOnly: true