From 1e8d16ecbdc33c21a038948c2dd9ac7791df1508 Mon Sep 17 00:00:00 2001 From: disservin Date: Tue, 25 Jul 2023 16:58:27 +0200 Subject: [PATCH] fix: missing typescript declaration for globalTypeFiles (#189) --- packages/plugin-vue/README.md | 13 ++++++++++++- packages/plugin-vue/src/index.ts | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/packages/plugin-vue/README.md b/packages/plugin-vue/README.md index 1b6e025c..d5b45a63 100644 --- a/packages/plugin-vue/README.md +++ b/packages/plugin-vue/README.md @@ -23,7 +23,18 @@ export interface Options { isProduction?: boolean // options to pass on to vue/compiler-sfc - script?: Partial> + script?: Partial< + Pick< + SFCScriptCompileOptions, + | 'babelParserPlugins' + | 'globalTypeFiles' + | 'defineModel' + | 'propsDestructure' + | 'fs' + | 'reactivityTransform' + > + > + template?: Partial< Pick< SFCTemplateCompileOptions, diff --git a/packages/plugin-vue/src/index.ts b/packages/plugin-vue/src/index.ts index 05f3bf7a..811c7167 100644 --- a/packages/plugin-vue/src/index.ts +++ b/packages/plugin-vue/src/index.ts @@ -34,6 +34,7 @@ export interface Options { Pick< SFCScriptCompileOptions, | 'babelParserPlugins' + | 'globalTypeFiles' | 'defineModel' | 'propsDestructure' | 'fs'