@scml/sc2-modloader 1.0.1 → 1.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scml/sc2-modloader",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "private": false,
5
5
  "description": "SugarCube 2 Mod Loader Workspace",
6
6
  "license": "MIT",
@@ -19,8 +19,9 @@
19
19
  "README.md"
20
20
  ],
21
21
  "type": "module",
22
- "types": "./type-dist/global.ts",
22
+ "types": "./type-dist/global.d.ts",
23
23
  "exports": {
24
+ ".": "./type-dist/global.d.ts",
24
25
  "./AddonPlugin": "./type-dist/AddonPlugin.d.ts",
25
26
  "./DecoratorUtils": "./type-dist/DecoratorUtils.d.ts",
26
27
  "./DependenceChecker": "./type-dist/DependenceChecker.d.ts",
@@ -1,17 +1,19 @@
1
- import JQueryStatic from "jquery/JQueryStatic";
2
-
3
- //#region remote/BeforeSC2/global.d.ts
4
- // declare var $: JQueryStatic;
5
- // declare var jQuery: JQueryStatic;
1
+ import type JQueryStatic from "jquery/JQueryStatic";
2
+ import type { SC2DataManager } from "./SC2DataManager.d.ts";
3
+ import type { ModUtils } from "./Utils.d.ts";
4
+ import type { JsPreloader } from "./JsPreloader.d.ts";
5
+ import type { ModLoadController } from "./ModLoadController.d.ts";
6
+ import type { AddonPluginManager } from "./AddonPlugin.d.ts";
7
+ import type { SC2JsEvalContext } from "./SC2JsEvalContext.d.ts";
6
8
  declare global {
7
9
  interface Window {
8
- jQuery: JQueryStatic;
9
- $: JQueryStatic;
10
- modSC2DataManager: SC2DataManager;
11
- modUtils: ModUtils;
12
- jsPreloader: JsPreloader;
13
- modModLoadController: ModLoadController;
14
- modAddonPluginManager: AddonPluginManager;
15
- modSC2JsEvalContext: SC2JsEvalContext;
10
+ jQuery: JQueryStatic
11
+ "$": JQueryStatic
12
+ modSC2DataManager: SC2DataManager
13
+ modUtils: ModUtils
14
+ jsPreloader: JsPreloader
15
+ modModLoadController: ModLoadController
16
+ modAddonPluginManager: AddonPluginManager
17
+ modSC2JsEvalContext: SC2JsEvalContext
16
18
  }
17
19
  }
@@ -1,19 +0,0 @@
1
- import type JQueryStatic from "jquery/JQueryStatic";
2
- import type { SC2DataManager } from "./SC2DataManager.d.ts";
3
- import type { ModUtils } from "./Utils.d.ts";
4
- import type { JsPreloader } from "./JsPreloader.d.ts";
5
- import type { ModLoadController } from "./ModLoadController.d.ts";
6
- import type { AddonPluginManager } from "./AddonPlugin.d.ts";
7
- import type { SC2JsEvalContext } from "./SC2JsEvalContext.d.ts";
8
- declare global {
9
- interface window {
10
- jQuery: JQueryStatic
11
- "$": JQueryStatic
12
- modSC2DataManager: SC2DataManager
13
- modUtils: ModUtils
14
- jsPreloader: JsPreloader
15
- modModLoadController: ModLoadController
16
- modAddonPluginManager: AddonPluginManager
17
- modSC2JsEvalContext: SC2JsEvalContext
18
- }
19
- }