unity-types 6000.3.0 → 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.
package/_system.d.ts ADDED
@@ -0,0 +1,578 @@
1
+ // System namespace types for Unity/C# interop
2
+ // These are .NET Base Class Library types commonly used in Unity APIs
3
+
4
+ // Helper types (duplicated from index.d.ts for standalone use)
5
+ declare interface $Ref<T> { __doNotAccess: T }
6
+ declare interface $Out<T> { __doNotAccess: T }
7
+
8
+ declare namespace CS {
9
+ namespace System {
10
+ // Base types
11
+ class Object {
12
+ public Equals($obj: any): boolean;
13
+ public GetHashCode(): number;
14
+ public GetType(): System.Type;
15
+ public ToString(): string;
16
+ }
17
+
18
+ class Type {
19
+ public get Name(): string;
20
+ public get FullName(): string;
21
+ public get Namespace(): string;
22
+ public get Assembly(): System.Reflection.Assembly;
23
+ public get BaseType(): System.Type;
24
+ public get IsClass(): boolean;
25
+ public get IsInterface(): boolean;
26
+ public get IsValueType(): boolean;
27
+ public get IsEnum(): boolean;
28
+ public get IsArray(): boolean;
29
+ public get IsGenericType(): boolean;
30
+ public static GetType($typeName: string): System.Type;
31
+ }
32
+
33
+ class Attribute {}
34
+ class Exception {
35
+ public get Message(): string;
36
+ public get StackTrace(): string;
37
+ public get InnerException(): System.Exception;
38
+ }
39
+ class SystemException extends Exception {}
40
+
41
+ // Value types
42
+ class ValueType extends Object {}
43
+ class Enum extends ValueType {}
44
+
45
+ // Interfaces
46
+ interface IDisposable {
47
+ Dispose(): void;
48
+ }
49
+ interface ICloneable {
50
+ Clone(): any;
51
+ }
52
+ interface IComparable {
53
+ CompareTo($obj: any): number;
54
+ }
55
+ interface IComparable$1<T> {
56
+ CompareTo($other: T): number;
57
+ }
58
+ interface IEquatable$1<T> {
59
+ Equals($other: T): boolean;
60
+ }
61
+ interface IConvertible {}
62
+ interface IFormattable {
63
+ ToString($format: string, $formatProvider: System.IFormatProvider): string;
64
+ }
65
+ interface IFormatProvider {
66
+ GetFormat($formatType: System.Type): any;
67
+ }
68
+
69
+ // Arrays
70
+ class Array {
71
+ public get Length(): number;
72
+ public get Rank(): number;
73
+ public GetLength($dimension: number): number;
74
+ public GetValue($index: number): any;
75
+ public SetValue($value: any, $index: number): void;
76
+ public static Copy($sourceArray: System.Array, $destinationArray: System.Array, $length: number): void;
77
+ public static Clear($array: System.Array, $index: number, $length: number): void;
78
+ public static IndexOf($array: System.Array, $value: any): number;
79
+ public static Reverse($array: System.Array): void;
80
+ public static Sort($array: System.Array): void;
81
+ }
82
+
83
+ // Generic array (T[])
84
+ interface Array$1<T> {
85
+ readonly length: number;
86
+ [index: number]: T;
87
+ get_Item($index: number): T;
88
+ set_Item($index: number, $value: T): void;
89
+ }
90
+
91
+ // Spans (minimal, as they're not fully usable in JS)
92
+ interface Span$1<T> {
93
+ readonly Length: number;
94
+ }
95
+ interface ReadOnlySpan$1<T> {
96
+ readonly Length: number;
97
+ }
98
+
99
+ // Delegates / Function types
100
+ interface Action {
101
+ (): void;
102
+ Invoke(): void;
103
+ }
104
+ interface Action$1<T> {
105
+ ($arg: T): void;
106
+ Invoke($arg: T): void;
107
+ }
108
+ interface Action$2<T1, T2> {
109
+ ($arg1: T1, $arg2: T2): void;
110
+ Invoke($arg1: T1, $arg2: T2): void;
111
+ }
112
+ interface Action$3<T1, T2, T3> {
113
+ ($arg1: T1, $arg2: T2, $arg3: T3): void;
114
+ Invoke($arg1: T1, $arg2: T2, $arg3: T3): void;
115
+ }
116
+ interface Action$4<T1, T2, T3, T4> {
117
+ ($arg1: T1, $arg2: T2, $arg3: T3, $arg4: T4): void;
118
+ Invoke($arg1: T1, $arg2: T2, $arg3: T3, $arg4: T4): void;
119
+ }
120
+
121
+ interface Func$1<TResult> {
122
+ (): TResult;
123
+ Invoke(): TResult;
124
+ }
125
+ interface Func$2<T, TResult> {
126
+ ($arg: T): TResult;
127
+ Invoke($arg: T): TResult;
128
+ }
129
+ interface Func$3<T1, T2, TResult> {
130
+ ($arg1: T1, $arg2: T2): TResult;
131
+ Invoke($arg1: T1, $arg2: T2): TResult;
132
+ }
133
+ interface Func$4<T1, T2, T3, TResult> {
134
+ ($arg1: T1, $arg2: T2, $arg3: T3): TResult;
135
+ Invoke($arg1: T1, $arg2: T2, $arg3: T3): TResult;
136
+ }
137
+
138
+ interface Predicate$1<T> {
139
+ ($obj: T): boolean;
140
+ Invoke($obj: T): boolean;
141
+ }
142
+
143
+ interface Comparison$1<T> {
144
+ ($x: T, $y: T): number;
145
+ Invoke($x: T, $y: T): number;
146
+ }
147
+
148
+ // Tuples
149
+ class ValueTuple$2<T1, T2> {
150
+ public Item1: T1;
151
+ public Item2: T2;
152
+ }
153
+ class ValueTuple$3<T1, T2, T3> {
154
+ public Item1: T1;
155
+ public Item2: T2;
156
+ public Item3: T3;
157
+ }
158
+ class ValueTuple$4<T1, T2, T3, T4> {
159
+ public Item1: T1;
160
+ public Item2: T2;
161
+ public Item3: T3;
162
+ public Item4: T4;
163
+ }
164
+
165
+ // Date/Time
166
+ class DateTime {
167
+ public static get Now(): System.DateTime;
168
+ public static get UtcNow(): System.DateTime;
169
+ public static get Today(): System.DateTime;
170
+ public get Year(): number;
171
+ public get Month(): number;
172
+ public get Day(): number;
173
+ public get Hour(): number;
174
+ public get Minute(): number;
175
+ public get Second(): number;
176
+ public get Millisecond(): number;
177
+ public get Ticks(): bigint;
178
+ public get DayOfWeek(): number;
179
+ public get DayOfYear(): number;
180
+ public AddDays($value: number): System.DateTime;
181
+ public AddHours($value: number): System.DateTime;
182
+ public AddMinutes($value: number): System.DateTime;
183
+ public AddSeconds($value: number): System.DateTime;
184
+ public AddMilliseconds($value: number): System.DateTime;
185
+ public ToString(): string;
186
+ public ToString($format: string): string;
187
+ }
188
+
189
+ class TimeSpan {
190
+ public static get Zero(): System.TimeSpan;
191
+ public get Days(): number;
192
+ public get Hours(): number;
193
+ public get Minutes(): number;
194
+ public get Seconds(): number;
195
+ public get Milliseconds(): number;
196
+ public get Ticks(): bigint;
197
+ public get TotalDays(): number;
198
+ public get TotalHours(): number;
199
+ public get TotalMinutes(): number;
200
+ public get TotalSeconds(): number;
201
+ public get TotalMilliseconds(): number;
202
+ public static FromDays($value: number): System.TimeSpan;
203
+ public static FromHours($value: number): System.TimeSpan;
204
+ public static FromMinutes($value: number): System.TimeSpan;
205
+ public static FromSeconds($value: number): System.TimeSpan;
206
+ public static FromMilliseconds($value: number): System.TimeSpan;
207
+ }
208
+
209
+ class Guid {
210
+ public static Empty: System.Guid;
211
+ public static NewGuid(): System.Guid;
212
+ public static Parse($input: string): System.Guid;
213
+ public ToString(): string;
214
+ public ToString($format: string): string;
215
+ }
216
+
217
+ // Nullable
218
+ class Nullable$1<T> {
219
+ public get HasValue(): boolean;
220
+ public get Value(): T;
221
+ public GetValueOrDefault(): T;
222
+ public GetValueOrDefault($defaultValue: T): T;
223
+ }
224
+
225
+ // Collections
226
+ namespace Collections {
227
+ interface IEnumerable {
228
+ GetEnumerator(): System.Collections.IEnumerator;
229
+ }
230
+ interface IEnumerator {
231
+ get Current(): any;
232
+ MoveNext(): boolean;
233
+ Reset(): void;
234
+ }
235
+ interface ICollection extends IEnumerable {
236
+ get Count(): number;
237
+ }
238
+ interface IList extends ICollection {
239
+ get_Item($index: number): any;
240
+ set_Item($index: number, $value: any): void;
241
+ Add($value: any): number;
242
+ Clear(): void;
243
+ Contains($value: any): boolean;
244
+ IndexOf($value: any): number;
245
+ Insert($index: number, $value: any): void;
246
+ Remove($value: any): void;
247
+ RemoveAt($index: number): void;
248
+ }
249
+
250
+ namespace Generic {
251
+ interface IEnumerable$1<T> {
252
+ GetEnumerator(): System.Collections.Generic.IEnumerator$1<T>;
253
+ }
254
+ interface IEnumerator$1<T> {
255
+ get Current(): T;
256
+ MoveNext(): boolean;
257
+ }
258
+ interface ICollection$1<T> extends IEnumerable$1<T> {
259
+ get Count(): number;
260
+ get IsReadOnly(): boolean;
261
+ Add($item: T): void;
262
+ Clear(): void;
263
+ Contains($item: T): boolean;
264
+ CopyTo($array: System.Array$1<T>, $arrayIndex: number): void;
265
+ Remove($item: T): boolean;
266
+ }
267
+ interface IList$1<T> extends ICollection$1<T> {
268
+ get_Item($index: number): T;
269
+ set_Item($index: number, $value: T): void;
270
+ IndexOf($item: T): number;
271
+ Insert($index: number, $item: T): void;
272
+ RemoveAt($index: number): void;
273
+ }
274
+ interface IReadOnlyCollection$1<T> extends IEnumerable$1<T> {
275
+ get Count(): number;
276
+ }
277
+ interface IReadOnlyList$1<T> extends IReadOnlyCollection$1<T> {
278
+ get_Item($index: number): T;
279
+ }
280
+ interface IDictionary$2<TKey, TValue> extends ICollection$1<System.Collections.Generic.KeyValuePair$2<TKey, TValue>> {
281
+ get Keys(): System.Collections.Generic.ICollection$1<TKey>;
282
+ get Values(): System.Collections.Generic.ICollection$1<TValue>;
283
+ get_Item($key: TKey): TValue;
284
+ set_Item($key: TKey, $value: TValue): void;
285
+ ContainsKey($key: TKey): boolean;
286
+ Add($item: System.Collections.Generic.KeyValuePair$2<TKey, TValue>): void;
287
+ Add($key: TKey, $value: TValue): void;
288
+ Remove($item: System.Collections.Generic.KeyValuePair$2<TKey, TValue>): boolean;
289
+ Remove($key: TKey): boolean;
290
+ TryGetValue($key: TKey, $value: $Out<TValue>): boolean;
291
+ }
292
+
293
+ class KeyValuePair$2<TKey, TValue> {
294
+ public get Key(): TKey;
295
+ public get Value(): TValue;
296
+ }
297
+
298
+ class List$1<T> implements IList$1<T> {
299
+ public get Count(): number;
300
+ public get IsReadOnly(): boolean;
301
+ public get Capacity(): number;
302
+ constructor();
303
+ constructor($capacity: number);
304
+ constructor($collection: System.Collections.Generic.IEnumerable$1<T>);
305
+ public get_Item($index: number): T;
306
+ public set_Item($index: number, $value: T): void;
307
+ public Add($item: T): void;
308
+ public AddRange($collection: System.Collections.Generic.IEnumerable$1<T>): void;
309
+ public Clear(): void;
310
+ public Contains($item: T): boolean;
311
+ public CopyTo($array: System.Array$1<T>, $arrayIndex: number): void;
312
+ public Find($match: System.Predicate$1<T>): T;
313
+ public FindAll($match: System.Predicate$1<T>): System.Collections.Generic.List$1<T>;
314
+ public FindIndex($match: System.Predicate$1<T>): number;
315
+ public ForEach($action: System.Action$1<T>): void;
316
+ public GetEnumerator(): System.Collections.Generic.IEnumerator$1<T>;
317
+ public IndexOf($item: T): number;
318
+ public Insert($index: number, $item: T): void;
319
+ public Remove($item: T): boolean;
320
+ public RemoveAll($match: System.Predicate$1<T>): number;
321
+ public RemoveAt($index: number): void;
322
+ public Reverse(): void;
323
+ public Sort(): void;
324
+ public Sort($comparison: System.Comparison$1<T>): void;
325
+ public ToArray(): System.Array$1<T>;
326
+ }
327
+
328
+ class Dictionary$2<TKey, TValue> implements IDictionary$2<TKey, TValue> {
329
+ public get Count(): number;
330
+ public get IsReadOnly(): boolean;
331
+ public get Keys(): System.Collections.Generic.ICollection$1<TKey>;
332
+ public get Values(): System.Collections.Generic.ICollection$1<TValue>;
333
+ constructor();
334
+ constructor($capacity: number);
335
+ public get_Item($key: TKey): TValue;
336
+ public set_Item($key: TKey, $value: TValue): void;
337
+ public Add($item: System.Collections.Generic.KeyValuePair$2<TKey, TValue>): void;
338
+ public Add($key: TKey, $value: TValue): void;
339
+ public Clear(): void;
340
+ public Contains($item: System.Collections.Generic.KeyValuePair$2<TKey, TValue>): boolean;
341
+ public ContainsKey($key: TKey): boolean;
342
+ public ContainsValue($value: TValue): boolean;
343
+ public CopyTo($array: System.Array$1<System.Collections.Generic.KeyValuePair$2<TKey, TValue>>, $arrayIndex: number): void;
344
+ public Remove($item: System.Collections.Generic.KeyValuePair$2<TKey, TValue>): boolean;
345
+ public Remove($key: TKey): boolean;
346
+ public TryGetValue($key: TKey, $value: $Out<TValue>): boolean;
347
+ public GetEnumerator(): System.Collections.Generic.IEnumerator$1<System.Collections.Generic.KeyValuePair$2<TKey, TValue>>;
348
+ }
349
+
350
+ class HashSet$1<T> implements ICollection$1<T> {
351
+ public get Count(): number;
352
+ public get IsReadOnly(): boolean;
353
+ constructor();
354
+ public Add($item: T): boolean;
355
+ public Clear(): void;
356
+ public Contains($item: T): boolean;
357
+ public CopyTo($array: System.Array$1<T>, $arrayIndex: number): void;
358
+ public Remove($item: T): boolean;
359
+ public GetEnumerator(): System.Collections.Generic.IEnumerator$1<T>;
360
+ public UnionWith($other: System.Collections.Generic.IEnumerable$1<T>): void;
361
+ public IntersectWith($other: System.Collections.Generic.IEnumerable$1<T>): void;
362
+ public ExceptWith($other: System.Collections.Generic.IEnumerable$1<T>): void;
363
+ }
364
+
365
+ class Queue$1<T> implements IEnumerable$1<T> {
366
+ public get Count(): number;
367
+ constructor();
368
+ constructor($capacity: number);
369
+ public Enqueue($item: T): void;
370
+ public Dequeue(): T;
371
+ public Peek(): T;
372
+ public Clear(): void;
373
+ public Contains($item: T): boolean;
374
+ public ToArray(): System.Array$1<T>;
375
+ public GetEnumerator(): System.Collections.Generic.IEnumerator$1<T>;
376
+ }
377
+
378
+ class Stack$1<T> implements IEnumerable$1<T> {
379
+ public get Count(): number;
380
+ constructor();
381
+ constructor($capacity: number);
382
+ public Push($item: T): void;
383
+ public Pop(): T;
384
+ public Peek(): T;
385
+ public Clear(): void;
386
+ public Contains($item: T): boolean;
387
+ public ToArray(): System.Array$1<T>;
388
+ public GetEnumerator(): System.Collections.Generic.IEnumerator$1<T>;
389
+ }
390
+ }
391
+ }
392
+
393
+ // Reflection
394
+ namespace Reflection {
395
+ class Assembly {
396
+ public get FullName(): string;
397
+ public get Location(): string;
398
+ public GetName(): System.Reflection.AssemblyName;
399
+ public GetTypes(): System.Array$1<System.Type>;
400
+ public GetType($name: string): System.Type;
401
+ public static GetExecutingAssembly(): System.Reflection.Assembly;
402
+ }
403
+ class AssemblyName {
404
+ public get Name(): string;
405
+ public get Version(): System.Version;
406
+ }
407
+ class MemberInfo {
408
+ public get Name(): string;
409
+ public get DeclaringType(): System.Type;
410
+ public get MemberType(): number;
411
+ }
412
+ class MethodInfo extends MemberInfo {
413
+ public get ReturnType(): System.Type;
414
+ public GetParameters(): System.Array$1<System.Reflection.ParameterInfo>;
415
+ }
416
+ class ParameterInfo {
417
+ public get Name(): string;
418
+ public get ParameterType(): System.Type;
419
+ }
420
+ class PropertyInfo extends MemberInfo {
421
+ public get PropertyType(): System.Type;
422
+ public get CanRead(): boolean;
423
+ public get CanWrite(): boolean;
424
+ }
425
+ class FieldInfo extends MemberInfo {
426
+ public get FieldType(): System.Type;
427
+ public get IsStatic(): boolean;
428
+ }
429
+ }
430
+
431
+ class Version {
432
+ public get Major(): number;
433
+ public get Minor(): number;
434
+ public get Build(): number;
435
+ public get Revision(): number;
436
+ public ToString(): string;
437
+ }
438
+
439
+ // Threading
440
+ namespace Threading {
441
+ class CancellationToken {
442
+ public static get None(): System.Threading.CancellationToken;
443
+ public get IsCancellationRequested(): boolean;
444
+ public get CanBeCanceled(): boolean;
445
+ public ThrowIfCancellationRequested(): void;
446
+ }
447
+ class CancellationTokenSource implements IDisposable {
448
+ public get Token(): System.Threading.CancellationToken;
449
+ public get IsCancellationRequested(): boolean;
450
+ constructor();
451
+ constructor($millisecondsDelay: number);
452
+ public Cancel(): void;
453
+ public Cancel($throwOnFirstException: boolean): void;
454
+ public CancelAfter($millisecondsDelay: number): void;
455
+ public Dispose(): void;
456
+ }
457
+ namespace Tasks {
458
+ class Task {
459
+ public get IsCompleted(): boolean;
460
+ public get IsCanceled(): boolean;
461
+ public get IsFaulted(): boolean;
462
+ public get Status(): number;
463
+ public static get CompletedTask(): System.Threading.Tasks.Task;
464
+ public static Delay($millisecondsDelay: number): System.Threading.Tasks.Task;
465
+ public static FromResult<T>($result: T): System.Threading.Tasks.Task$1<T>;
466
+ }
467
+ class Task$1<TResult> extends Task {
468
+ public get Result(): TResult;
469
+ }
470
+ }
471
+ }
472
+
473
+ // I/O
474
+ namespace IO {
475
+ class Stream implements IDisposable {
476
+ public get CanRead(): boolean;
477
+ public get CanWrite(): boolean;
478
+ public get CanSeek(): boolean;
479
+ public get Length(): bigint;
480
+ public get Position(): bigint;
481
+ public Read($buffer: System.Array$1<number>, $offset: number, $count: number): number;
482
+ public Write($buffer: System.Array$1<number>, $offset: number, $count: number): void;
483
+ public Flush(): void;
484
+ public Close(): void;
485
+ public Dispose(): void;
486
+ }
487
+ class MemoryStream extends Stream {
488
+ constructor();
489
+ constructor($buffer: System.Array$1<number>);
490
+ public ToArray(): System.Array$1<number>;
491
+ }
492
+ class FileStream extends Stream {
493
+ constructor($path: string, $mode: number);
494
+ }
495
+ class StreamReader implements IDisposable {
496
+ constructor($stream: System.IO.Stream);
497
+ constructor($path: string);
498
+ public ReadLine(): string;
499
+ public ReadToEnd(): string;
500
+ public Close(): void;
501
+ public Dispose(): void;
502
+ }
503
+ class StreamWriter implements IDisposable {
504
+ constructor($stream: System.IO.Stream);
505
+ constructor($path: string);
506
+ public Write($value: string): void;
507
+ public WriteLine($value: string): void;
508
+ public Flush(): void;
509
+ public Close(): void;
510
+ public Dispose(): void;
511
+ }
512
+ class File {
513
+ public static Exists($path: string): boolean;
514
+ public static ReadAllText($path: string): string;
515
+ public static ReadAllBytes($path: string): System.Array$1<number>;
516
+ public static WriteAllText($path: string, $contents: string): void;
517
+ public static WriteAllBytes($path: string, $bytes: System.Array$1<number>): void;
518
+ public static Delete($path: string): void;
519
+ public static Copy($sourceFileName: string, $destFileName: string): void;
520
+ public static Move($sourceFileName: string, $destFileName: string): void;
521
+ }
522
+ class Directory {
523
+ public static Exists($path: string): boolean;
524
+ public static CreateDirectory($path: string): System.IO.DirectoryInfo;
525
+ public static Delete($path: string): void;
526
+ public static Delete($path: string, $recursive: boolean): void;
527
+ public static GetFiles($path: string): System.Array$1<string>;
528
+ public static GetDirectories($path: string): System.Array$1<string>;
529
+ }
530
+ class DirectoryInfo {
531
+ public get Name(): string;
532
+ public get FullName(): string;
533
+ public get Exists(): boolean;
534
+ }
535
+ class Path {
536
+ public static Combine($path1: string, $path2: string): string;
537
+ public static GetFileName($path: string): string;
538
+ public static GetDirectoryName($path: string): string;
539
+ public static GetExtension($path: string): string;
540
+ public static GetFileNameWithoutExtension($path: string): string;
541
+ public static ChangeExtension($path: string, $extension: string): string;
542
+ }
543
+ }
544
+
545
+ // Text
546
+ namespace Text {
547
+ class StringBuilder {
548
+ public get Length(): number;
549
+ constructor();
550
+ constructor($value: string);
551
+ constructor($capacity: number);
552
+ public Append($value: string): System.Text.StringBuilder;
553
+ public Append($value: number): System.Text.StringBuilder;
554
+ public AppendLine(): System.Text.StringBuilder;
555
+ public AppendLine($value: string): System.Text.StringBuilder;
556
+ public Clear(): System.Text.StringBuilder;
557
+ public Insert($index: number, $value: string): System.Text.StringBuilder;
558
+ public Remove($startIndex: number, $length: number): System.Text.StringBuilder;
559
+ public Replace($oldValue: string, $newValue: string): System.Text.StringBuilder;
560
+ public ToString(): string;
561
+ }
562
+ class Encoding {
563
+ public static get UTF8(): System.Text.Encoding;
564
+ public static get ASCII(): System.Text.Encoding;
565
+ public static get Unicode(): System.Text.Encoding;
566
+ public GetBytes($s: string): System.Array$1<number>;
567
+ public GetString($bytes: System.Array$1<number>): string;
568
+ }
569
+ }
570
+
571
+ // Runtime.CompilerServices
572
+ namespace Runtime {
573
+ namespace CompilerServices {
574
+ class ExtensionAttribute extends Attribute {}
575
+ }
576
+ }
577
+ }
578
+ }
package/index.d.ts CHANGED
@@ -1,8 +1,40 @@
1
- // Unity 6000.3 Type Definitions
1
+ // Unity Type Definitions for OneJS
2
2
  // https://github.com/Singtaa/unity-types
3
+ //
4
+ // Usage:
5
+ // npm install unity-types
6
+ //
7
+ // Add to tsconfig.json:
8
+ // { "compilerOptions": { "types": ["unity-types"] } }
9
+ //
10
+ // Then use CS.* types directly:
11
+ // const go = new CS.UnityEngine.GameObject("MyObject")
12
+ // const vec = new CS.UnityEngine.Vector3(1, 2, 3)
3
13
 
4
- /// <reference path="./UnityEngine.CoreModule.d.ts" />
5
- /// <reference path="./UnityEngine.UIElementsModule.d.ts" />
6
- /// <reference path="./UnityEngine.InputLegacyModule.d.ts" />
7
- /// <reference path="./UnityEngine.PhysicsModule.d.ts" />
8
- /// <reference path="./UnityEngine.AudioModule.d.ts" />
14
+ /// <reference path="_system.d.ts" />
15
+ /// <reference path="UnityEngine.CoreModule.d.ts" />
16
+ /// <reference path="UnityEngine.UIElementsModule.d.ts" />
17
+ /// <reference path="UnityEngine.PhysicsModule.d.ts" />
18
+ /// <reference path="UnityEngine.Physics2DModule.d.ts" />
19
+ /// <reference path="UnityEngine.AudioModule.d.ts" />
20
+ /// <reference path="UnityEngine.InputLegacyModule.d.ts" />
21
+ /// <reference path="UnityEngine.UnityWebRequestModule.d.ts" />
22
+ /// <reference path="Unity.InputSystem.d.ts" />
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.0",
3
+ "version": "6000.3.2",
4
4
  "description": "TypeScript definitions for Unity 6000.3",
5
5
  "types": "index.d.ts",
6
6
  "repository": {