compiler-dom.d.ts 2.1 KB

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