vue-component-meta 1.0.0-alpha.3 → 1.0.0-alpha.5
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/out/types.d.ts +48 -49
- package/package.json +4 -4
package/out/types.d.ts
CHANGED
|
@@ -1,68 +1,67 @@
|
|
|
1
1
|
import type * as ts from 'typescript/lib/tsserverlibrary';
|
|
2
2
|
export interface ComponentMeta {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
props: PropertyMeta[];
|
|
4
|
+
events: EventMeta[];
|
|
5
|
+
slots: SlotMeta[];
|
|
6
|
+
exposed: ExposeMeta[];
|
|
7
7
|
}
|
|
8
8
|
export interface PropertyMeta {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
9
|
+
name: string;
|
|
10
|
+
default?: string;
|
|
11
|
+
description: string;
|
|
12
|
+
global: boolean;
|
|
13
|
+
required: boolean;
|
|
14
|
+
type: string;
|
|
15
|
+
rawType?: ts.Type;
|
|
16
|
+
tags: {
|
|
17
|
+
name: string;
|
|
18
|
+
text?: string;
|
|
19
|
+
}[];
|
|
20
|
+
schema?: PropertyMetaSchema;
|
|
21
21
|
}
|
|
22
22
|
export interface EventMeta {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
name: string;
|
|
24
|
+
type: string;
|
|
25
|
+
rawType?: ts.Type;
|
|
26
|
+
signature: string;
|
|
27
|
+
schema?: PropertyMetaSchema[];
|
|
28
28
|
}
|
|
29
29
|
export interface SlotMeta {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
name: string;
|
|
31
|
+
type: string;
|
|
32
|
+
rawType?: ts.Type;
|
|
33
|
+
description: string;
|
|
34
|
+
schema?: PropertyMetaSchema;
|
|
35
35
|
}
|
|
36
36
|
export interface ExposeMeta {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
name: string;
|
|
38
|
+
description: string;
|
|
39
|
+
type: string;
|
|
40
|
+
rawType?: ts.Type;
|
|
41
|
+
schema?: PropertyMetaSchema;
|
|
42
42
|
}
|
|
43
|
-
export declare type PropertyMetaSchema =
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
schema?: PropertyMetaSchema[];
|
|
43
|
+
export declare type PropertyMetaSchema = {
|
|
44
|
+
kind: 'const';
|
|
45
|
+
displayString: string;
|
|
47
46
|
} | {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
kind: 'enum';
|
|
48
|
+
displayString: string;
|
|
49
|
+
members: PropertyMetaSchema[];
|
|
51
50
|
} | {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
kind: 'array';
|
|
52
|
+
displayString: string;
|
|
53
|
+
element: PropertyMetaSchema ;
|
|
55
54
|
} | {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
kind: 'object';
|
|
56
|
+
displayString: string;
|
|
57
|
+
properties: Record<string, PropertyMetaSchema>;
|
|
59
58
|
};
|
|
60
59
|
export declare type MetaCheckerSchemaOptions = boolean | {
|
|
61
|
-
|
|
60
|
+
ignore?: string[];
|
|
62
61
|
};
|
|
63
62
|
export interface MetaCheckerOptions {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
63
|
+
schema?: MetaCheckerSchemaOptions;
|
|
64
|
+
forceUseTs?: boolean;
|
|
65
|
+
printer?: import('typescript').PrinterOptions;
|
|
66
|
+
rawType?: boolean;
|
|
68
67
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-component-meta",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.5",
|
|
4
4
|
"main": "out/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"directory": "packages/vue-component-meta"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@volar/language-core": "1.0.0-alpha.
|
|
17
|
-
"@volar/vue-language-core": "1.0.0-alpha.
|
|
16
|
+
"@volar/language-core": "1.0.0-alpha.5",
|
|
17
|
+
"@volar/vue-language-core": "1.0.0-alpha.5"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"typescript": "*"
|
|
21
21
|
},
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "dd3efd3f7458aca9ba5dcdf549ce80999cb7affd"
|
|
23
23
|
}
|