vue-component-meta 1.8.21 → 1.8.24

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 CHANGED
@@ -1,33 +1,24 @@
1
- import * as vue from '@vue/language-core';
2
- import type * as ts from 'typescript/lib/tsserverlibrary';
3
- import type { MetaCheckerOptions, ComponentMeta } from './types';
1
+ import * as ts from 'typescript';
2
+ import type { MetaCheckerOptions } from './types';
4
3
  export * from './types';
5
- export type ComponentMetaChecker = ReturnType<typeof baseCreate>;
6
- export declare function createComponentMetaCheckerByJsonConfig(root: string, json: any, checkerOptions?: MetaCheckerOptions, ts?: typeof import('typescript/lib/tsserverlibrary')): {
4
+ export declare function createComponentMetaCheckerByJsonConfig(rootPath: string, json: any, checkerOptions?: MetaCheckerOptions): {
7
5
  updateFile(fileName: string, text: string): void;
8
6
  deleteFile(fileName: string): void;
9
7
  reload(): void;
10
8
  clearCache(): void;
11
9
  getExportNames: (componentPath: string) => string[];
12
- getComponentMeta: (componentPath: string, exportName?: string) => ComponentMeta;
10
+ getComponentMeta: (componentPath: string, exportName?: string) => import("./types").ComponentMeta;
13
11
  __internal__: {
14
12
  tsLs: ts.LanguageService;
15
13
  };
16
14
  };
17
- export declare function createComponentMetaChecker(tsconfigPath: string, checkerOptions?: MetaCheckerOptions, ts?: typeof import('typescript/lib/tsserverlibrary')): {
15
+ export declare function createComponentMetaChecker(tsconfig: string, checkerOptions?: MetaCheckerOptions): {
18
16
  updateFile(fileName: string, text: string): void;
19
17
  deleteFile(fileName: string): void;
20
18
  reload(): void;
21
19
  clearCache(): void;
22
20
  getExportNames: (componentPath: string) => string[];
23
- getComponentMeta: (componentPath: string, exportName?: string) => ComponentMeta;
24
- __internal__: {
25
- tsLs: ts.LanguageService;
26
- };
27
- };
28
- export declare function baseCreate(_host: vue.TypeScriptLanguageHost, vueCompilerOptions: vue.VueCompilerOptions, checkerOptions: MetaCheckerOptions, globalComponentName: string, ts: typeof import('typescript/lib/tsserverlibrary')): {
29
- getExportNames: (componentPath: string) => string[];
30
- getComponentMeta: (componentPath: string, exportName?: string) => ComponentMeta;
21
+ getComponentMeta: (componentPath: string, exportName?: string) => import("./types").ComponentMeta;
31
22
  __internal__: {
32
23
  tsLs: ts.LanguageService;
33
24
  };