@gi-tcg/gts-language-plugin 0.3.2 → 0.3.4

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/dist/index.d.ts CHANGED
@@ -1,10 +1,11 @@
1
1
  import { CodeMapping, LanguagePlugin, VirtualCode } from "@volar/language-core";
2
2
  import { URI } from "vscode-uri";
3
3
  import { GtsConfig, GtsTranspilerError } from "@gi-tcg/gts-transpiler";
4
- import * as _$typescript from "typescript";
4
+ import * as ts$1 from "typescript";
5
+ import ts from "typescript";
5
6
 
6
7
  //#region src/language_plugin.d.ts
7
- type Ts = typeof _$typescript;
8
+ type Ts = typeof ts;
8
9
  declare function createGtsLanguagePlugin(ts: Ts, inlineConfig?: GtsConfig): LanguagePlugin<URI | string>;
9
10
  //#endregion
10
11
  //#region src/virtual_code.d.ts
@@ -12,9 +13,9 @@ declare class GtsVirtualCode implements VirtualCode {
12
13
  id: string;
13
14
  languageId: string;
14
15
  mappings: CodeMapping[];
15
- snapshot: _$typescript.IScriptSnapshot;
16
+ snapshot: ts$1.IScriptSnapshot;
16
17
  errors: GtsTranspilerError[];
17
- constructor(filename: string, snapshot: _$typescript.IScriptSnapshot, config: Required<GtsConfig>);
18
+ constructor(filename: string, snapshot: ts$1.IScriptSnapshot, config: Required<GtsConfig>);
18
19
  }
19
20
  //#endregion
20
21
  export { GtsVirtualCode, createGtsLanguagePlugin };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gi-tcg/gts-language-plugin",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "repository": "https://github.com/piovium/gts.git",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -19,7 +19,7 @@
19
19
  "@volar/language-core": "~2.4.0",
20
20
  "@volar/typescript": "~2.4.0",
21
21
  "vscode-uri": "^3.0.8",
22
- "@gi-tcg/gts-transpiler": "0.3.2"
22
+ "@gi-tcg/gts-transpiler": "0.3.4"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "typescript": "^5.9.3"
@@ -5,7 +5,7 @@ import { URI } from "vscode-uri";
5
5
  import { resolveGtsConfigSync, type GtsConfig } from "@gi-tcg/gts-transpiler";
6
6
  import { GtsVirtualCode } from "./virtual_code.ts";
7
7
 
8
- type Ts = typeof import("typescript");
8
+ type Ts = typeof ts;
9
9
 
10
10
  export function createGtsLanguagePlugin(
11
11
  ts: Ts,