compiler-dom.d.ts 1.8 KB

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