智慧水务管理系统 - 精河县供水工程综合管理平台

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. //#region types.d.ts
  2. interface PackageManifest {
  3. name: string;
  4. display: string;
  5. addon?: boolean;
  6. author?: string;
  7. description?: string;
  8. external?: string[];
  9. globals?: Record<string, string>;
  10. manualImport?: boolean;
  11. deprecated?: boolean;
  12. submodules?: boolean;
  13. build?: boolean;
  14. iife?: boolean;
  15. mjs?: boolean;
  16. dts?: boolean;
  17. target?: string;
  18. utils?: boolean;
  19. copy?: string[];
  20. }
  21. interface VueUseFunction {
  22. name: string;
  23. package: string;
  24. importPath?: string;
  25. lastUpdated?: number;
  26. category?: string;
  27. description?: string;
  28. docs?: string;
  29. deprecated?: boolean;
  30. internal?: boolean;
  31. component?: boolean;
  32. directive?: boolean;
  33. external?: string;
  34. alias?: string[];
  35. related?: string[];
  36. variants?: string[];
  37. }
  38. interface VueUsePackage extends PackageManifest {
  39. dir: string;
  40. docs?: string;
  41. }
  42. interface PackageIndexes {
  43. packages: Record<string, VueUsePackage>;
  44. categories: string[];
  45. functions: VueUseFunction[];
  46. }
  47. interface CommitInfo {
  48. functions: string[];
  49. version?: string;
  50. hash: string;
  51. date: string;
  52. message: string;
  53. refs?: string;
  54. body?: string;
  55. author_name: string;
  56. author_email: string;
  57. }
  58. interface ContributorInfo {
  59. name: string;
  60. count: number;
  61. hash: string;
  62. }
  63. //#endregion
  64. //#region metadata.d.ts
  65. declare const metadata: PackageIndexes;
  66. declare const functions: PackageIndexes["functions"];
  67. declare const packages: PackageIndexes["packages"];
  68. declare const categories: PackageIndexes["categories"];
  69. declare const functionNames: string[];
  70. declare const categoryNames: string[];
  71. declare const coreCategoryNames: string[];
  72. declare const addonCategoryNames: string[];
  73. declare function getFunction(name: string): VueUseFunction | undefined;
  74. //#endregion
  75. //#region utils.d.ts
  76. declare function getCategories(functions: VueUseFunction[]): string[];
  77. declare function uniq<T extends any[]>(a: T): any[];
  78. //#endregion
  79. export { CommitInfo, ContributorInfo, PackageIndexes, PackageManifest, VueUseFunction, VueUsePackage, addonCategoryNames, categories, categoryNames, coreCategoryNames, functionNames, functions, getCategories, getFunction, metadata, packages, uniq };