@vueuse/metadata 8.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts ADDED
@@ -0,0 +1,75 @@
1
+ interface PackageManifest {
2
+ name: string;
3
+ display: string;
4
+ addon?: boolean;
5
+ author?: string;
6
+ description?: string;
7
+ external?: string[];
8
+ globals?: Record<string, string>;
9
+ manualImport?: boolean;
10
+ deprecated?: boolean;
11
+ submodules?: boolean;
12
+ build?: boolean;
13
+ iife?: boolean;
14
+ cjs?: 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
+ lastUpdated?: number;
25
+ category?: string;
26
+ description?: string;
27
+ docs?: string;
28
+ deprecated?: boolean;
29
+ internal?: boolean;
30
+ component?: boolean;
31
+ directive?: boolean;
32
+ external?: string;
33
+ alias?: string[];
34
+ related?: string[];
35
+ }
36
+ interface VueUsePackage extends PackageManifest {
37
+ dir: string;
38
+ docs?: string;
39
+ }
40
+ interface PackageIndexes {
41
+ packages: Record<string, VueUsePackage>;
42
+ categories: string[];
43
+ functions: VueUseFunction[];
44
+ }
45
+ interface CommitInfo {
46
+ functions: string[];
47
+ version?: string;
48
+ hash: string;
49
+ date: string;
50
+ message: string;
51
+ refs?: string;
52
+ body?: string;
53
+ author_name: string;
54
+ author_email: string;
55
+ }
56
+ interface ContributorInfo {
57
+ name: string;
58
+ count: number;
59
+ hash: string;
60
+ }
61
+
62
+ declare const metadata: PackageIndexes;
63
+ declare const functions: VueUseFunction[];
64
+ declare const packages: Record<string, VueUsePackage>;
65
+ declare const categories: string[];
66
+ declare const functionNames: string[];
67
+ declare const categoryNames: string[];
68
+ declare const coreCategoryNames: string[];
69
+ declare const addonCategoryNames: string[];
70
+ declare const getFunction: (name: string) => VueUseFunction | undefined;
71
+
72
+ declare function getCategories(functions: VueUseFunction[]): string[];
73
+ declare function uniq<T extends any[]>(a: T): any[];
74
+
75
+ export { CommitInfo, ContributorInfo, PackageIndexes, PackageManifest, VueUseFunction, VueUsePackage, addonCategoryNames, categories, categoryNames, coreCategoryNames, functionNames, functions, getCategories, getFunction, metadata, packages, uniq };