index.d.ts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. import * as _vueuse_core_metadata_cjs from '@vueuse/core/metadata.cjs';
  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. cjs?: boolean;
  16. mjs?: boolean;
  17. dts?: boolean;
  18. target?: string;
  19. utils?: boolean;
  20. copy?: string[];
  21. }
  22. interface VueUseFunction {
  23. name: string;
  24. package: string;
  25. importPath?: string;
  26. lastUpdated?: number;
  27. category?: string;
  28. description?: string;
  29. docs?: string;
  30. deprecated?: boolean;
  31. internal?: boolean;
  32. component?: boolean;
  33. directive?: boolean;
  34. external?: string;
  35. alias?: string[];
  36. related?: 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. declare const metadata: PackageIndexes;
  64. declare const functions: PackageIndexes["functions"];
  65. declare const packages: PackageIndexes["packages"];
  66. declare const categories: PackageIndexes["categories"];
  67. declare const functionNames: string[];
  68. declare const categoryNames: string[];
  69. declare const coreCategoryNames: string[];
  70. declare const addonCategoryNames: string[];
  71. declare function getFunction(name: string): _vueuse_core_metadata_cjs.VueUseFunction | undefined;
  72. declare function getCategories(functions: VueUseFunction[]): string[];
  73. declare function uniq<T extends any[]>(a: T): any[];
  74. export { type CommitInfo, type ContributorInfo, type PackageIndexes, type PackageManifest, type VueUseFunction, type VueUsePackage, addonCategoryNames, categories, categoryNames, coreCategoryNames, functionNames, functions, getCategories, getFunction, metadata, packages, uniq };