@vue/compiler-sfc 3.4.0-alpha.2 → 3.4.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/compiler-sfc.cjs.js +3119 -2982
- package/dist/compiler-sfc.d.ts +4 -3
- package/dist/compiler-sfc.esm-browser.js +568 -173
- package/package.json +10 -10
package/dist/compiler-sfc.d.ts
CHANGED
|
@@ -159,6 +159,7 @@ export interface SFCParseOptions {
|
|
|
159
159
|
pad?: boolean | 'line' | 'space';
|
|
160
160
|
ignoreEmpty?: boolean;
|
|
161
161
|
compiler?: TemplateCompiler;
|
|
162
|
+
parseExpressions?: boolean;
|
|
162
163
|
}
|
|
163
164
|
export interface SFCBlock {
|
|
164
165
|
type: string;
|
|
@@ -221,7 +222,7 @@ export interface SFCParseResult {
|
|
|
221
222
|
descriptor: SFCDescriptor;
|
|
222
223
|
errors: (CompilerError | SyntaxError)[];
|
|
223
224
|
}
|
|
224
|
-
export declare function parse(source: string, { sourceMap, filename, sourceRoot, pad, ignoreEmpty, compiler }?: SFCParseOptions): SFCParseResult;
|
|
225
|
+
export declare function parse(source: string, { sourceMap, filename, sourceRoot, pad, ignoreEmpty, compiler, parseExpressions }?: SFCParseOptions): SFCParseResult;
|
|
225
226
|
|
|
226
227
|
type PreprocessLang = 'less' | 'sass' | 'scss' | 'styl' | 'stylus';
|
|
227
228
|
|
|
@@ -291,7 +292,7 @@ interface ModelDecl {
|
|
|
291
292
|
identifier: string | undefined;
|
|
292
293
|
}
|
|
293
294
|
|
|
294
|
-
declare
|
|
295
|
+
declare enum BindingTypes {
|
|
295
296
|
/**
|
|
296
297
|
* returned from data()
|
|
297
298
|
*/
|
|
@@ -450,7 +451,7 @@ interface ResolvedElements {
|
|
|
450
451
|
*/
|
|
451
452
|
export declare function resolveTypeElements(ctx: TypeResolveContext, node: Node & MaybeWithScope & {
|
|
452
453
|
_resolvedElements?: ResolvedElements;
|
|
453
|
-
}, scope?: TypeScope): ResolvedElements;
|
|
454
|
+
}, scope?: TypeScope, typeParameters?: Record<string, Node>): ResolvedElements;
|
|
454
455
|
/**
|
|
455
456
|
* @private
|
|
456
457
|
*/
|