vue-tsc 1.0.21 → 1.0.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,6 +1,7 @@
1
1
  import * as ts from 'typescript';
2
2
  import * as vue from '@volar/vue-language-core';
3
3
  import * as vueTs from '@volar/vue-typescript';
4
+ export type Hook = (program: _Program) => void;
4
5
  export type _Program = ts.Program & {
5
6
  __vue: ProgramContext;
6
7
  };
@@ -10,7 +11,6 @@ interface ProgramContext {
10
11
  languageServiceHost: vue.VueLanguageServiceHost;
11
12
  languageService: ReturnType<typeof vueTs.createLanguageService>;
12
13
  }
13
- export declare function createProgram(options: ts.CreateProgramOptions, // rootNamesOrOptions: readonly string[] | CreateProgramOptions,
14
- _options?: ts.CompilerOptions, _host?: ts.CompilerHost, _oldProgram?: ts.Program, _configFileParsingDiagnostics?: readonly ts.Diagnostic[]): _Program;
14
+ export declare function createProgram(options: ts.CreateProgramOptions): _Program;
15
15
  export declare function loadTsLib(): typeof ts;
16
16
  export {};
package/out/index.js CHANGED
@@ -13,8 +13,7 @@ const ts = require("typescript");
13
13
  const vue = require("@volar/vue-language-core");
14
14
  const vueTs = require("@volar/vue-typescript");
15
15
  const shared_1 = require("./shared");
16
- function createProgram(options, // rootNamesOrOptions: readonly string[] | CreateProgramOptions,
17
- _options, _host, _oldProgram, _configFileParsingDiagnostics) {
16
+ function createProgram(options) {
18
17
  var _a, _b;
19
18
  if (!options.options.noEmit && !options.options.emitDeclarationOnly)
20
19
  throw toThrow('js emit is not supported');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-tsc",
3
- "version": "1.0.21",
3
+ "version": "1.0.24",
4
4
  "main": "out/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -17,11 +17,11 @@
17
17
  "vue-tsc": "./bin/vue-tsc.js"
18
18
  },
19
19
  "dependencies": {
20
- "@volar/vue-language-core": "1.0.21",
21
- "@volar/vue-typescript": "1.0.21"
20
+ "@volar/vue-language-core": "1.0.24",
21
+ "@volar/vue-typescript": "1.0.24"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "typescript": "*"
25
25
  },
26
- "gitHead": "72332760759e06eed18e62026185cbad70250367"
26
+ "gitHead": "46da609e8914e29642f4707dec31507ad51b03fc"
27
27
  }