8000 types: omit overridden options · unplugin/unplugin-vue@e99fe25 · GitHub
[go: up one dir, main page]

Skip to content

Commit e99fe25

Browse files
committed
types: omit overridden options
1 parent 1a09896 commit e99fe25

File tree

1 file changed

+37
-12
lines changed

1 file changed

+37
-12
lines changed

src/core/index.ts

Lines changed: 37 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,16 @@ export interface Options {
4444

4545
// options to pass on to vue/compiler-sfc
4646
script?: Partial<
47-
Pick<
47+
Omit<
4848
SFCScriptCompileOptions,
49-
| 'babelParserPlugins'
50-
| 'globalTypeFiles'
51-
| 'propsDestructure'
52-
| 'fs'
53-
| 'hoistStatic'
49+
| 'id'
50+
| 'isProd'
51+
| 'inlineTemplate'
52+
| 'templateOptions'
53+
| 'sourceMap'
54+
| 'genDefaultAs'
55+
| 'customElement'
56+
| 'defineModel'
5457
>
5558
> & {
5659
/**
@@ -60,16 +63,38 @@ export interface Options {
6063
defineModel?: boolean
6164
}
6265
template?: Partial<
63-
Pick<
66+
Omit<
6467
SFCTemplateCompileOptions,
65-
| 'compiler'
66-
| 'compilerOptions'
67-
| 'preprocessOptions'
68+
| 'id'
69+
| 'source'
70+
| 'ast'
71+
| 'filename'
72+
| 'scoped'
73+
| 'slotted'
74+
| 'isProd'
75+
| 'inMap'
76+
| 'ssr'
77+
| 'ssrCssVars'
78+
| 'preprocessLang'
79+
>
80+
>
81+
style?: Partial<
82+
Omit<
83+
SFCStyleCompileOptions,
84+
| 'filename'
85+
| 'id'
86+
| 'isProd'
87+
| 'source'
88+
| 'scoped'
89+
| 'cssDevSourcemap'
90+
| 'postcssOptions'
91+
| 'map'
92+
| 'postcssPlugins'
6893
| 'preprocessCustomRequire'
69-
| 'transformAssetUrls'
94+
| 'preprocessLang'
95+
| 'preprocessOptions'
7096
>
7197
>
72-
style?: Partial<Pick<SFCStyleCompileOptions, 'trim'>>
7398

7499
/**
75100
* Transform Vue SFCs into custom elements.

0 commit comments

Comments
 (0)
0