vue-component-meta 1.0.0-alpha.4 → 1.0.0-beta.0
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/index.d.ts +1 -1
- package/out/types.d.ts +2 -2
- package/package.json +4 -4
package/out/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as vue from '@volar/vue-language-core';
|
|
|
2
2
|
import * as ts from 'typescript/lib/tsserverlibrary';
|
|
3
3
|
import type { MetaCheckerOptions, ComponentMeta, EventMeta, ExposeMeta, MetaCheckerSchemaOptions, PropertyMeta, PropertyMetaSchema, SlotMeta } from './types';
|
|
4
4
|
export type { MetaCheckerOptions, ComponentMeta, EventMeta, ExposeMeta, MetaCheckerSchemaOptions, PropertyMeta, PropertyMetaSchema, SlotMeta };
|
|
5
|
-
export
|
|
5
|
+
export type ComponentMetaChecker = ReturnType<typeof createComponentMetaCheckerBase>;
|
|
6
6
|
export declare function createComponentMetaCheckerByJsonConfig(root: string, json: any, checkerOptions?: MetaCheckerOptions): {
|
|
7
7
|
getExportNames: (componentPath: string) => string[];
|
|
8
8
|
getComponentMeta: (componentPath: string, exportName?: string) => ComponentMeta;
|
package/out/types.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ export interface ExposeMeta {
|
|
|
40
40
|
rawType?: ts.Type;
|
|
41
41
|
schema?: PropertyMetaSchema;
|
|
42
42
|
}
|
|
43
|
-
export
|
|
43
|
+
export type PropertyMetaSchema = string | {
|
|
44
44
|
kind: 'enum';
|
|
45
45
|
type: string;
|
|
46
46
|
schema?: PropertyMetaSchema[];
|
|
@@ -57,7 +57,7 @@ export declare type PropertyMetaSchema = string | {
|
|
|
57
57
|
type: string;
|
|
58
58
|
schema?: Record<string, PropertyMeta>;
|
|
59
59
|
};
|
|
60
|
-
export
|
|
60
|
+
export type MetaCheckerSchemaOptions = boolean | {
|
|
61
61
|
ignore?: string[];
|
|
62
62
|
};
|
|
63
63
|
export interface MetaCheckerOptions {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-component-meta",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-beta.0",
|
|
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-
|
|
17
|
-
"@volar/vue-language-core": "1.0.0-
|
|
16
|
+
"@volar/language-core": "1.0.0-beta.0",
|
|
17
|
+
"@volar/vue-language-core": "1.0.0-beta.0"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"typescript": "*"
|
|
21
21
|
},
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "e93a2cf6e614f6c8fa9b8a61e314c123cbe9a95a"
|
|
23
23
|
}
|