@tsonic/globals 0.3.5 → 0.3.6
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/index.d.ts +11 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -42,6 +42,17 @@ declare global {
|
|
|
42
42
|
[Symbol.iterator](): IterableIterator<T>;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
/**
|
|
46
|
+
* ArrayConstructor - allows new Array<T>(size) syntax
|
|
47
|
+
* In dotnet mode: emits as new T[size]
|
|
48
|
+
* In js mode: emits as new List<T>() with capacity
|
|
49
|
+
*/
|
|
50
|
+
interface ArrayConstructor {
|
|
51
|
+
new <T>(size?: number): T[];
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const Array: ArrayConstructor;
|
|
55
|
+
|
|
45
56
|
/**
|
|
46
57
|
* String - augmented with BCL methods from System.String
|
|
47
58
|
*/
|