unity-types 6000.3.1 → 6000.3.2

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.
Files changed (2) hide show
  1. package/index.d.ts +17 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -21,3 +21,20 @@
21
21
  /// <reference path="UnityEngine.UnityWebRequestModule.d.ts" />
22
22
  /// <reference path="Unity.InputSystem.d.ts" />
23
23
  /// <reference path="OneJS.d.ts" />
24
+
25
+ // =============================================================================
26
+ // ES6 Module Declarations
27
+ // Allows ES6-style imports: import { GameObject } from "UnityEngine"
28
+ // =============================================================================
29
+
30
+ declare module "UnityEngine" {
31
+ export = CS.UnityEngine;
32
+ }
33
+
34
+ declare module "UnityEngine/UIElements" {
35
+ export = CS.UnityEngine.UIElements;
36
+ }
37
+
38
+ declare module "System" {
39
+ export = CS.System;
40
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unity-types",
3
- "version": "6000.3.1",
3
+ "version": "6000.3.2",
4
4
  "description": "TypeScript definitions for Unity 6000.3",
5
5
  "types": "index.d.ts",
6
6
  "repository": {