@tsonic/globals 0.3.9 → 0.3.10

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 +15 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -17,9 +17,19 @@ import {
17
17
  Boolean$instance, __Boolean$views,
18
18
  Object$instance
19
19
  } from "@tsonic/dotnet/System/internal/index.js";
20
- import { IEnumerable_1 } from "@tsonic/dotnet/System.Collections.Generic/internal/index.js";
20
+ import type { IEnumerator } from "@tsonic/dotnet/System.Collections/internal/index.js";
21
+ import { IEnumerable_1, IEnumerator_1 } from "@tsonic/dotnet/System.Collections.Generic/internal/index.js";
21
22
 
22
23
  declare global {
24
+ // Minimal Error surface (noLib mode).
25
+ // Compiler maps this to CLR System.Exception via builtin bindings.
26
+ class Error {
27
+ name: string;
28
+ message: string;
29
+ stack?: string;
30
+ constructor(message?: string);
31
+ }
32
+
23
33
  /**
24
34
  * Array<T> - C# array type (T[])
25
35
  *
@@ -35,11 +45,15 @@ declare global {
35
45
  interface Array<T> extends Array$instance, __Array$views, IEnumerable_1<T> {
36
46
  [n: number]: T;
37
47
  [Symbol.iterator](): IterableIterator<T>;
48
+ getEnumerator(): IEnumerator_1<T>;
49
+ getEnumerator(): IEnumerator;
38
50
  }
39
51
 
40
52
  interface ReadonlyArray<T> extends Array$instance, __Array$views, IEnumerable_1<T> {
41
53
  readonly [n: number]: T;
42
54
  [Symbol.iterator](): IterableIterator<T>;
55
+ getEnumerator(): IEnumerator_1<T>;
56
+ getEnumerator(): IEnumerator;
43
57
  }
44
58
 
45
59
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsonic/globals",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "description": "Global type definitions for Tsonic with BCL primitive methods",
5
5
  "main": "index.d.ts",
6
6
  "types": "index.d.ts",