@tsonic/js 10.0.41 → 10.0.43

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.
@@ -5,7 +5,6 @@
5
5
 
6
6
  // Import namespace modules for cross-namespace type references
7
7
  import * as System from "@tsonic/dotnet/System/internal/index.js";
8
- import * as System_Collections_Generic from "@tsonic/dotnet/System.Collections.Generic/internal/index.js";
9
8
 
10
9
  // Import primitive type aliases
11
10
  import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
@@ -38,8 +37,8 @@ interface __TsonicExtMethods_Tsonic_JSRuntime {
38
37
  lastIndexOf(this: string, searchString: string, position?: System.Nullable_1<System_Internal.Int32>): Rewrap<this, int>;
39
38
  length(this: string): Rewrap<this, int>;
40
39
  localeCompare(this: string, compareString: string): Rewrap<this, int>;
41
- match(this: string, pattern: string): Rewrap<this, System_Collections_Generic.List_1<System_Internal.String> | undefined>;
42
- matchAll(this: string, pattern: string): Rewrap<this, System_Collections_Generic.List_1<System_Collections_Generic.List_1<System_Internal.String>>>;
40
+ match(this: string, pattern: string): Rewrap<this, string[] | undefined>;
41
+ matchAll(this: string, pattern: string): Rewrap<this, string[][]>;
43
42
  normalize(this: string, form?: string): Rewrap<this, string>;
44
43
  padEnd(this: string, targetLength: int, padString?: string): Rewrap<this, string>;
45
44
  padStart(this: string, targetLength: int, padString?: string): Rewrap<this, string>;
@@ -48,7 +47,7 @@ interface __TsonicExtMethods_Tsonic_JSRuntime {
48
47
  replaceAll(this: string, search: string, replacement: string): Rewrap<this, string>;
49
48
  search(this: string, pattern: string): Rewrap<this, int>;
50
49
  slice(this: string, start: int, end?: System.Nullable_1<System_Internal.Int32>): Rewrap<this, string>;
51
- split(this: string, separator: string, limit?: System.Nullable_1<System_Internal.Int32>): Rewrap<this, System_Collections_Generic.List_1<System_Internal.String>>;
50
+ split(this: string, separator: string, limit?: System.Nullable_1<System_Internal.Int32>): Rewrap<this, string[]>;
52
51
  startsWith(this: string, searchString: string): Rewrap<this, boolean>;
53
52
  substr(this: string, start: int, length?: System.Nullable_1<System_Internal.Int32>): Rewrap<this, string>;
54
53
  substring(this: string, start: int, end?: System.Nullable_1<System_Internal.Int32>): Rewrap<this, string>;
@@ -56,6 +55,11 @@ interface __TsonicExtMethods_Tsonic_JSRuntime {
56
55
  toLocaleUpperCase(this: string): Rewrap<this, string>;
57
56
  toLowerCase(this: string): Rewrap<this, string>;
58
57
  toString(this: double): Rewrap<this, string>;
58
+ toString(this: int): Rewrap<this, string>;
59
+ toString(this: long): Rewrap<this, string>;
60
+ toString(this: System.Nullable_1<System_Internal.Double>): Rewrap<this, string>;
61
+ toString(this: System.Nullable_1<System_Internal.Int32>): Rewrap<this, string>;
62
+ toString(this: System.Nullable_1<System_Internal.Int64>): Rewrap<this, string>;
59
63
  toString(this: string): Rewrap<this, string>;
60
64
  toUpperCase(this: string): Rewrap<this, string>;
61
65
  toWellFormed(this: string): Rewrap<this, string>;
@@ -65,6 +69,11 @@ interface __TsonicExtMethods_Tsonic_JSRuntime {
65
69
  trimRight(this: string): Rewrap<this, string>;
66
70
  trimStart(this: string): Rewrap<this, string>;
67
71
  valueOf(this: double): Rewrap<this, double>;
72
+ valueOf(this: int): Rewrap<this, int>;
73
+ valueOf(this: long): Rewrap<this, long>;
74
+ valueOf(this: System.Nullable_1<System_Internal.Double>): Rewrap<this, System.Nullable_1<System_Internal.Double>>;
75
+ valueOf(this: System.Nullable_1<System_Internal.Int32>): Rewrap<this, System.Nullable_1<System_Internal.Int32>>;
76
+ valueOf(this: System.Nullable_1<System_Internal.Int64>): Rewrap<this, System.Nullable_1<System_Internal.Int64>>;
68
77
  valueOf(this: string): Rewrap<this, string>;
69
78
  }
70
79
 
package/bindings.json CHANGED
@@ -9,68 +9,110 @@
9
9
  "kind": "global",
10
10
  "assembly": "Tsonic.JSRuntime",
11
11
  "type": "Tsonic.JSRuntime.Date",
12
- "staticType": "Tsonic.JSRuntime.Date"
12
+ "staticType": "Tsonic.JSRuntime.Date",
13
+ "typeSemantics": {
14
+ "contributesTypeIdentity": true
15
+ }
16
+ },
17
+ "Uint8Array": {
18
+ "kind": "global",
19
+ "assembly": "Tsonic.JSRuntime",
20
+ "type": "Tsonic.JSRuntime.Uint8Array",
21
+ "staticType": "Tsonic.JSRuntime.Uint8Array",
22
+ "typeSemantics": {
23
+ "contributesTypeIdentity": true
24
+ }
13
25
  },
14
26
  "JSON": {
15
27
  "kind": "global",
16
28
  "assembly": "Tsonic.JSRuntime",
17
29
  "type": "Tsonic.JSRuntime.JSON",
18
- "staticType": "Tsonic.JSRuntime.JSON"
30
+ "staticType": "Tsonic.JSRuntime.JSON",
31
+ "typeSemantics": {
32
+ "contributesTypeIdentity": false
33
+ }
19
34
  },
20
35
  "Math": {
21
36
  "kind": "global",
22
37
  "assembly": "Tsonic.JSRuntime",
23
38
  "type": "Tsonic.JSRuntime.Math",
24
- "staticType": "Tsonic.JSRuntime.Math"
39
+ "staticType": "Tsonic.JSRuntime.Math",
40
+ "typeSemantics": {
41
+ "contributesTypeIdentity": false
42
+ }
25
43
  },
26
44
  "Number": {
27
45
  "kind": "global",
28
46
  "assembly": "Tsonic.JSRuntime",
29
47
  "type": "Tsonic.JSRuntime.Number",
30
- "staticType": "Tsonic.JSRuntime.Number"
48
+ "staticType": "Tsonic.JSRuntime.Number",
49
+ "typeSemantics": {
50
+ "contributesTypeIdentity": true
51
+ }
31
52
  },
32
53
  "RegExp": {
33
54
  "kind": "global",
34
55
  "assembly": "Tsonic.JSRuntime",
35
56
  "type": "Tsonic.JSRuntime.RegExp",
36
- "staticType": "Tsonic.JSRuntime.RegExp"
57
+ "staticType": "Tsonic.JSRuntime.RegExp",
58
+ "typeSemantics": {
59
+ "contributesTypeIdentity": true
60
+ }
37
61
  },
38
62
  "Map": {
39
63
  "kind": "global",
40
64
  "assembly": "Tsonic.JSRuntime",
41
65
  "type": "Tsonic.JSRuntime.Map`2",
42
- "csharpName": "Map"
66
+ "csharpName": "Map",
67
+ "typeSemantics": {
68
+ "contributesTypeIdentity": true
69
+ }
43
70
  },
44
71
  "Set": {
45
72
  "kind": "global",
46
73
  "assembly": "Tsonic.JSRuntime",
47
74
  "type": "Tsonic.JSRuntime.Set`1",
48
- "csharpName": "Set"
75
+ "csharpName": "Set",
76
+ "typeSemantics": {
77
+ "contributesTypeIdentity": true
78
+ }
49
79
  },
50
80
  "Object": {
51
81
  "kind": "global",
52
82
  "assembly": "Tsonic.JSRuntime",
53
83
  "type": "Tsonic.JSRuntime.Object",
54
- "staticType": "Tsonic.JSRuntime.Object"
84
+ "staticType": "Tsonic.JSRuntime.Object",
85
+ "typeSemantics": {
86
+ "contributesTypeIdentity": true
87
+ }
55
88
  },
56
89
  "String": {
57
90
  "kind": "global",
58
91
  "assembly": "Tsonic.JSRuntime",
59
92
  "type": "Tsonic.JSRuntime.String",
60
- "staticType": "Tsonic.JSRuntime.String"
93
+ "staticType": "Tsonic.JSRuntime.String",
94
+ "typeSemantics": {
95
+ "contributesTypeIdentity": true
96
+ }
61
97
  },
62
98
  "Array": {
63
99
  "kind": "global",
64
100
  "assembly": "Tsonic.JSRuntime",
65
101
  "type": "Tsonic.JSRuntime.JSArray`1",
66
102
  "staticType": "Tsonic.JSRuntime.JSArrayStatics",
67
- "csharpName": "JSArray"
103
+ "csharpName": "JSArray",
104
+ "typeSemantics": {
105
+ "contributesTypeIdentity": true
106
+ }
68
107
  },
69
108
  "ReadonlyArray": {
70
109
  "kind": "global",
71
110
  "assembly": "Tsonic.JSRuntime",
72
111
  "type": "Tsonic.JSRuntime.JSArray`1",
73
- "csharpName": "JSArray"
112
+ "csharpName": "JSArray",
113
+ "typeSemantics": {
114
+ "contributesTypeIdentity": true
115
+ }
74
116
  },
75
117
  "parseInt": {
76
118
  "kind": "global",
@@ -123,12 +165,18 @@
123
165
  "RangeError": {
124
166
  "kind": "global",
125
167
  "assembly": "Tsonic.JSRuntime",
126
- "type": "Tsonic.JSRuntime.RangeError"
168
+ "type": "Tsonic.JSRuntime.RangeError",
169
+ "typeSemantics": {
170
+ "contributesTypeIdentity": true
171
+ }
127
172
  },
128
173
  "Error": {
129
174
  "kind": "global",
130
175
  "assembly": "Tsonic.JSRuntime",
131
- "type": "Tsonic.JSRuntime.Error"
176
+ "type": "Tsonic.JSRuntime.Error",
177
+ "typeSemantics": {
178
+ "contributesTypeIdentity": true
179
+ }
132
180
  }
133
181
  }
134
182
  }
package/globals.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { int, long } from "@tsonic/core/types.js";
2
- import type { Date as JSRuntimeDate } from "./index/internal/index.js";
2
+ import type { Date as JSRuntimeDate, Uint8Array as JSRuntimeUint8Array } from "./index/internal/index.js";
3
3
 
4
4
  declare global {
5
5
  class RangeError extends Error {
@@ -235,6 +235,9 @@ declare global {
235
235
  interface Date extends JSRuntimeDate {
236
236
  }
237
237
 
238
+ interface Uint8Array extends JSRuntimeUint8Array {
239
+ }
240
+
238
241
  interface DateConstructor {
239
242
  new(): Date;
240
243
  new(value: string | number | long): Date;
@@ -242,6 +245,11 @@ declare global {
242
245
  parse(s: string): long;
243
246
  }
244
247
 
248
+ interface Uint8ArrayConstructor {
249
+ new(length: number): Uint8Array;
250
+ new(values: Iterable<number> | ArrayLike<number>): Uint8Array;
251
+ }
252
+
245
253
  interface JSON {
246
254
  parse<T = unknown>(text: string): T;
247
255
  stringify(value: unknown, replacer?: unknown, space?: string | number | int): string;
@@ -322,6 +330,8 @@ declare global {
322
330
 
323
331
  const Date: DateConstructor;
324
332
 
333
+ const Uint8Array: Uint8ArrayConstructor;
334
+
325
335
  const JSON: JSON;
326
336
 
327
337
  const Math: Math;