版博士V2.0程序
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

api.d.ts 1.7 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import { MagicString } from '@vue-macros/common';
  2. import { Program } from '@babel/types';
  3. import { T as TemplateContent, C as CustomBlocks } from './index-0dd2e877.js';
  4. export { M as MAIN_TEMPLATE, Q as QUERY_NAMED_TEMPLATE, a as QUERY_TEMPLATE, b as QUERY_TEMPLATE_MAIN } from './index-0dd2e877.js';
  5. import { ElementNode, NodeTransform, RootNode } from '@vue/compiler-dom';
  6. import 'unplugin';
  7. declare function getChildrenLocation(node: ElementNode): [number, number] | undefined;
  8. interface VueQuery {
  9. vue?: boolean;
  10. src?: string;
  11. type?: 'script' | 'template' | 'style' | 'custom';
  12. index?: number;
  13. lang?: string;
  14. raw?: boolean;
  15. url?: boolean;
  16. scoped?: boolean;
  17. }
  18. /**
  19. * Copy from https://github.com/vitejs/vite-plugin-vue/blob/797e424e46600c93fa76a4ef8befc08ef6b5abdb/packages/plugin-vue/src/utils/query.ts#L12
  20. */
  21. declare function parseVueRequest(id: string): {
  22. filename: string;
  23. query: VueQuery;
  24. };
  25. declare function transformTemplateIs(s: MagicString): NodeTransform;
  26. declare function preTransform(code: string, id: string, templateContent: TemplateContent): {
  27. code: string;
  28. map: any;
  29. } | undefined;
  30. declare function preTransformMainTemplate({ s, root, node, id, templateContent, }: {
  31. s: MagicString;
  32. root: RootNode;
  33. node: ElementNode;
  34. id: string;
  35. templateContent: TemplateContent;
  36. }): void;
  37. declare function postTransform(code: string, id: string, customBlocks: CustomBlocks): {
  38. code: string;
  39. map: any;
  40. } | undefined;
  41. declare function postTransformMainEntry(program: Program, id: string, customBlocks: CustomBlocks): void;
  42. export { VueQuery, getChildrenLocation, parseVueRequest, postTransform, postTransformMainEntry, preTransform, preTransformMainTemplate, transformTemplateIs };