Blame view

node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts 1.75 KB
7820380e   “wangming”   1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
  import { ParserOptions, NodeTransform, SourceLocation, CompilerError, DirectiveTransform, CompilerOptions, CodegenResult, RootNode } from '@vue/compiler-core';
  export * from '@vue/compiler-core';
  
  export declare const parserOptions: ParserOptions;
  
  export declare const V_MODEL_RADIO: unique symbol;
  export declare const V_MODEL_CHECKBOX: unique symbol;
  export declare const V_MODEL_TEXT: unique symbol;
  export declare const V_MODEL_SELECT: unique symbol;
  export declare const V_MODEL_DYNAMIC: unique symbol;
  export declare const V_ON_WITH_MODIFIERS: unique symbol;
  export declare const V_ON_WITH_KEYS: unique symbol;
  export declare const V_SHOW: unique symbol;
  export declare const TRANSITION: unique symbol;
  export declare const TRANSITION_GROUP: unique symbol;
  
  export declare const transformStyle: NodeTransform;
  
  interface DOMCompilerError extends CompilerError {
      code: DOMErrorCodes;
  }
  export declare function createDOMCompilerError(code: DOMErrorCodes, loc?: SourceLocation): DOMCompilerError;
  export declare const enum DOMErrorCodes {
      X_V_HTML_NO_EXPRESSION = 53,
      X_V_HTML_WITH_CHILDREN = 54,
      X_V_TEXT_NO_EXPRESSION = 55,
      X_V_TEXT_WITH_CHILDREN = 56,
      X_V_MODEL_ON_INVALID_ELEMENT = 57,
      X_V_MODEL_ARG_ON_ELEMENT = 58,
      X_V_MODEL_ON_FILE_INPUT_ELEMENT = 59,
      X_V_MODEL_UNNECESSARY_VALUE = 60,
      X_V_SHOW_NO_EXPRESSION = 61,
      X_TRANSITION_INVALID_CHILDREN = 62,
      X_IGNORED_SIDE_EFFECT_TAG = 63,
      __EXTEND_POINT__ = 64
  }
  
  export declare const DOMNodeTransforms: NodeTransform[];
  export declare const DOMDirectiveTransforms: Record<string, DirectiveTransform>;
  export declare function compile(template: string, options?: CompilerOptions): CodegenResult;
  export declare function parse(template: string, options?: ParserOptions): RootNode;