@tsonic/core 10.0.3 → 10.0.9

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.
@@ -9,11 +9,15 @@ import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint12
9
9
  import type { ptr } from "@tsonic/core/types.js";
10
10
 
11
11
  // Import types from other namespaces
12
- import type { Dictionary, IEnumerable, IList } from "@tsonic/dotnet/System.Collections.Generic.js";
13
- import * as System_Internal from "@tsonic/dotnet/System.js";
14
- import type { Action, Boolean as ClrBoolean, Func, IEquatable, Int32, Object as ClrObject, String as ClrString, Type, ValueType, Void } from "@tsonic/dotnet/System.js";
12
+ import type { Dictionary_2, IEnumerable_1, IList_1 } from "@tsonic/dotnet/System.Collections.Generic/internal/index.js";
13
+ import * as System_Internal from "@tsonic/dotnet/System/internal/index.js";
14
+ import type { Action_1, Boolean as ClrBoolean, Func_2, IEquatable_1, Int32, Object as ClrObject, String as ClrString, Type, ValueType, Void } from "@tsonic/dotnet/System/internal/index.js";
15
15
 
16
16
  export interface IteratorResult_1$instance<T> {
17
+ readonly __tsonic_type_Tsonic_Runtime_IteratorResult_1: never;
18
+
19
+ readonly __tsonic_iface_System_IEquatable_1: never;
20
+
17
21
  readonly done: boolean;
18
22
  Done: boolean;
19
23
  readonly value: T;
@@ -34,50 +38,55 @@ export const IteratorResult_1: {
34
38
  export type IteratorResult_1<T> = IteratorResult_1$instance<T>;
35
39
 
36
40
  export interface DictionaryAdapter_1$instance<T> {
37
- Item: T | undefined;
38
- readonly Keys: IEnumerable<System_Internal.String>;
39
- readonly Values: IEnumerable<T | undefined>;
41
+ readonly __tsonic_type_Tsonic_Runtime_DictionaryAdapter_1: never;
42
+
43
+ [key: string]: T | undefined;
44
+ readonly Keys: IEnumerable_1<System_Internal.String>;
45
+ readonly Values: IEnumerable_1<T | undefined>;
40
46
  ContainsKey(key: string): boolean;
41
- GetDictionary(): Dictionary<System_Internal.String, unknown | undefined>;
47
+ GetDictionary(): Dictionary_2<System_Internal.String, unknown | undefined>;
42
48
  }
43
49
 
44
50
 
45
51
  export const DictionaryAdapter_1: {
46
- new<T>(dictionary: Dictionary<System_Internal.String, unknown>): DictionaryAdapter_1<T>;
52
+ new<T>(dictionary: Dictionary_2<System_Internal.String, unknown>): DictionaryAdapter_1<T>;
47
53
  };
48
54
 
49
55
 
50
56
  export type DictionaryAdapter_1<T> = DictionaryAdapter_1$instance<T>;
51
57
 
52
58
  export interface DynamicObject$instance {
53
- get Item(): unknown | undefined;
54
- set Item(value: unknown);
59
+ readonly __tsonic_type_Tsonic_Runtime_DynamicObject: never;
60
+
61
+ [key: string]: unknown | undefined;
55
62
  GetKeys(): string[];
56
63
  GetProperty<T>(key: string): T | undefined;
57
64
  GetValues(): (unknown | undefined)[];
58
65
  HasProperty(key: string): boolean;
59
66
  SetProperty(key: string, value: unknown): void;
60
- ToDictionary(): Dictionary<System_Internal.String, unknown | undefined>;
67
+ ToDictionary(): Dictionary_2<System_Internal.String, unknown | undefined>;
61
68
  }
62
69
 
63
70
 
64
71
  export const DynamicObject: {
65
72
  new(): DynamicObject;
66
- FromDictionary(properties: Dictionary<System_Internal.String, unknown>): DynamicObject;
73
+ FromDictionary(properties: Dictionary_2<System_Internal.String, unknown>): DynamicObject;
67
74
  };
68
75
 
69
76
 
70
77
  export type DynamicObject = DynamicObject$instance;
71
78
 
72
79
  export interface Union_2$instance<T1, T2> {
80
+ readonly __tsonic_type_Tsonic_Runtime_Union_2: never;
81
+
73
82
  As1(): T1;
74
83
  As2(): T2;
75
84
  Equals(obj: unknown): boolean;
76
85
  GetHashCode(): int;
77
86
  Is1(): boolean;
78
87
  Is2(): boolean;
79
- Match<TResult>(onT1: Func<T1, TResult>, onT2: Func<T2, TResult>): TResult;
80
- Match(onT1: Action<T1>, onT2: Action<T2>): void;
88
+ Match<TResult>(onT1: Func_2<T1, TResult>, onT2: Func_2<T2, TResult>): TResult;
89
+ Match(onT1: Action_1<T1>, onT2: Action_1<T2>): void;
81
90
  ToString(): string | undefined;
82
91
  TryAs1(value: T1): boolean;
83
92
  TryAs2(value: T2): boolean;
@@ -85,7 +94,6 @@ export interface Union_2$instance<T1, T2> {
85
94
 
86
95
 
87
96
  export const Union_2: {
88
- new<T1, T2>(): Union_2<T1, T2>;
89
97
  From1<T1, T2>(value: T1): Union_2<T1, T2>;
90
98
  From2<T1, T2>(value: T2): Union_2<T1, T2>;
91
99
  };
@@ -94,6 +102,8 @@ export const Union_2: {
94
102
  export type Union_2<T1, T2> = Union_2$instance<T1, T2>;
95
103
 
96
104
  export interface Union_3$instance<T1, T2, T3> {
105
+ readonly __tsonic_type_Tsonic_Runtime_Union_3: never;
106
+
97
107
  As1(): T1;
98
108
  As2(): T2;
99
109
  As3(): T3;
@@ -102,8 +112,8 @@ export interface Union_3$instance<T1, T2, T3> {
102
112
  Is1(): boolean;
103
113
  Is2(): boolean;
104
114
  Is3(): boolean;
105
- Match<TResult>(onT1: Func<T1, TResult>, onT2: Func<T2, TResult>, onT3: Func<T3, TResult>): TResult;
106
- Match(onT1: Action<T1>, onT2: Action<T2>, onT3: Action<T3>): void;
115
+ Match<TResult>(onT1: Func_2<T1, TResult>, onT2: Func_2<T2, TResult>, onT3: Func_2<T3, TResult>): TResult;
116
+ Match(onT1: Action_1<T1>, onT2: Action_1<T2>, onT3: Action_1<T3>): void;
107
117
  ToString(): string | undefined;
108
118
  TryAs1(value: T1): boolean;
109
119
  TryAs2(value: T2): boolean;
@@ -112,7 +122,6 @@ export interface Union_3$instance<T1, T2, T3> {
112
122
 
113
123
 
114
124
  export const Union_3: {
115
- new<T1, T2, T3>(): Union_3<T1, T2, T3>;
116
125
  From1<T1, T2, T3>(value: T1): Union_3<T1, T2, T3>;
117
126
  From2<T1, T2, T3>(value: T2): Union_3<T1, T2, T3>;
118
127
  From3<T1, T2, T3>(value: T3): Union_3<T1, T2, T3>;
@@ -122,6 +131,8 @@ export const Union_3: {
122
131
  export type Union_3<T1, T2, T3> = Union_3$instance<T1, T2, T3>;
123
132
 
124
133
  export interface Union_4$instance<T1, T2, T3, T4> {
134
+ readonly __tsonic_type_Tsonic_Runtime_Union_4: never;
135
+
125
136
  As1(): T1;
126
137
  As2(): T2;
127
138
  As3(): T3;
@@ -132,8 +143,8 @@ export interface Union_4$instance<T1, T2, T3, T4> {
132
143
  Is2(): boolean;
133
144
  Is3(): boolean;
134
145
  Is4(): boolean;
135
- Match<TResult>(onT1: Func<T1, TResult>, onT2: Func<T2, TResult>, onT3: Func<T3, TResult>, onT4: Func<T4, TResult>): TResult;
136
- Match(onT1: Action<T1>, onT2: Action<T2>, onT3: Action<T3>, onT4: Action<T4>): void;
146
+ Match<TResult>(onT1: Func_2<T1, TResult>, onT2: Func_2<T2, TResult>, onT3: Func_2<T3, TResult>, onT4: Func_2<T4, TResult>): TResult;
147
+ Match(onT1: Action_1<T1>, onT2: Action_1<T2>, onT3: Action_1<T3>, onT4: Action_1<T4>): void;
137
148
  ToString(): string | undefined;
138
149
  TryAs1(value: T1): boolean;
139
150
  TryAs2(value: T2): boolean;
@@ -143,7 +154,6 @@ export interface Union_4$instance<T1, T2, T3, T4> {
143
154
 
144
155
 
145
156
  export const Union_4: {
146
- new<T1, T2, T3, T4>(): Union_4<T1, T2, T3, T4>;
147
157
  From1<T1, T2, T3, T4>(value: T1): Union_4<T1, T2, T3, T4>;
148
158
  From2<T1, T2, T3, T4>(value: T2): Union_4<T1, T2, T3, T4>;
149
159
  From3<T1, T2, T3, T4>(value: T3): Union_4<T1, T2, T3, T4>;
@@ -154,6 +164,8 @@ export const Union_4: {
154
164
  export type Union_4<T1, T2, T3, T4> = Union_4$instance<T1, T2, T3, T4>;
155
165
 
156
166
  export interface Union_5$instance<T1, T2, T3, T4, T5> {
167
+ readonly __tsonic_type_Tsonic_Runtime_Union_5: never;
168
+
157
169
  As1(): T1;
158
170
  As2(): T2;
159
171
  As3(): T3;
@@ -166,8 +178,8 @@ export interface Union_5$instance<T1, T2, T3, T4, T5> {
166
178
  Is3(): boolean;
167
179
  Is4(): boolean;
168
180
  Is5(): boolean;
169
- Match<TResult>(onT1: Func<T1, TResult>, onT2: Func<T2, TResult>, onT3: Func<T3, TResult>, onT4: Func<T4, TResult>, onT5: Func<T5, TResult>): TResult;
170
- Match(onT1: Action<T1>, onT2: Action<T2>, onT3: Action<T3>, onT4: Action<T4>, onT5: Action<T5>): void;
181
+ Match<TResult>(onT1: Func_2<T1, TResult>, onT2: Func_2<T2, TResult>, onT3: Func_2<T3, TResult>, onT4: Func_2<T4, TResult>, onT5: Func_2<T5, TResult>): TResult;
182
+ Match(onT1: Action_1<T1>, onT2: Action_1<T2>, onT3: Action_1<T3>, onT4: Action_1<T4>, onT5: Action_1<T5>): void;
171
183
  ToString(): string | undefined;
172
184
  TryAs1(value: T1): boolean;
173
185
  TryAs2(value: T2): boolean;
@@ -178,7 +190,6 @@ export interface Union_5$instance<T1, T2, T3, T4, T5> {
178
190
 
179
191
 
180
192
  export const Union_5: {
181
- new<T1, T2, T3, T4, T5>(): Union_5<T1, T2, T3, T4, T5>;
182
193
  From1<T1, T2, T3, T4, T5>(value: T1): Union_5<T1, T2, T3, T4, T5>;
183
194
  From2<T1, T2, T3, T4, T5>(value: T2): Union_5<T1, T2, T3, T4, T5>;
184
195
  From3<T1, T2, T3, T4, T5>(value: T3): Union_5<T1, T2, T3, T4, T5>;
@@ -190,6 +201,8 @@ export const Union_5: {
190
201
  export type Union_5<T1, T2, T3, T4, T5> = Union_5$instance<T1, T2, T3, T4, T5>;
191
202
 
192
203
  export interface Union_6$instance<T1, T2, T3, T4, T5, T6> {
204
+ readonly __tsonic_type_Tsonic_Runtime_Union_6: never;
205
+
193
206
  As1(): T1;
194
207
  As2(): T2;
195
208
  As3(): T3;
@@ -204,8 +217,8 @@ export interface Union_6$instance<T1, T2, T3, T4, T5, T6> {
204
217
  Is4(): boolean;
205
218
  Is5(): boolean;
206
219
  Is6(): boolean;
207
- Match<TResult>(onT1: Func<T1, TResult>, onT2: Func<T2, TResult>, onT3: Func<T3, TResult>, onT4: Func<T4, TResult>, onT5: Func<T5, TResult>, onT6: Func<T6, TResult>): TResult;
208
- Match(onT1: Action<T1>, onT2: Action<T2>, onT3: Action<T3>, onT4: Action<T4>, onT5: Action<T5>, onT6: Action<T6>): void;
220
+ Match<TResult>(onT1: Func_2<T1, TResult>, onT2: Func_2<T2, TResult>, onT3: Func_2<T3, TResult>, onT4: Func_2<T4, TResult>, onT5: Func_2<T5, TResult>, onT6: Func_2<T6, TResult>): TResult;
221
+ Match(onT1: Action_1<T1>, onT2: Action_1<T2>, onT3: Action_1<T3>, onT4: Action_1<T4>, onT5: Action_1<T5>, onT6: Action_1<T6>): void;
209
222
  ToString(): string | undefined;
210
223
  TryAs1(value: T1): boolean;
211
224
  TryAs2(value: T2): boolean;
@@ -217,7 +230,6 @@ export interface Union_6$instance<T1, T2, T3, T4, T5, T6> {
217
230
 
218
231
 
219
232
  export const Union_6: {
220
- new<T1, T2, T3, T4, T5, T6>(): Union_6<T1, T2, T3, T4, T5, T6>;
221
233
  From1<T1, T2, T3, T4, T5, T6>(value: T1): Union_6<T1, T2, T3, T4, T5, T6>;
222
234
  From2<T1, T2, T3, T4, T5, T6>(value: T2): Union_6<T1, T2, T3, T4, T5, T6>;
223
235
  From3<T1, T2, T3, T4, T5, T6>(value: T3): Union_6<T1, T2, T3, T4, T5, T6>;
@@ -230,6 +242,8 @@ export const Union_6: {
230
242
  export type Union_6<T1, T2, T3, T4, T5, T6> = Union_6$instance<T1, T2, T3, T4, T5, T6>;
231
243
 
232
244
  export interface Union_7$instance<T1, T2, T3, T4, T5, T6, T7> {
245
+ readonly __tsonic_type_Tsonic_Runtime_Union_7: never;
246
+
233
247
  As1(): T1;
234
248
  As2(): T2;
235
249
  As3(): T3;
@@ -246,8 +260,8 @@ export interface Union_7$instance<T1, T2, T3, T4, T5, T6, T7> {
246
260
  Is5(): boolean;
247
261
  Is6(): boolean;
248
262
  Is7(): boolean;
249
- Match<TResult>(onT1: Func<T1, TResult>, onT2: Func<T2, TResult>, onT3: Func<T3, TResult>, onT4: Func<T4, TResult>, onT5: Func<T5, TResult>, onT6: Func<T6, TResult>, onT7: Func<T7, TResult>): TResult;
250
- Match(onT1: Action<T1>, onT2: Action<T2>, onT3: Action<T3>, onT4: Action<T4>, onT5: Action<T5>, onT6: Action<T6>, onT7: Action<T7>): void;
263
+ Match<TResult>(onT1: Func_2<T1, TResult>, onT2: Func_2<T2, TResult>, onT3: Func_2<T3, TResult>, onT4: Func_2<T4, TResult>, onT5: Func_2<T5, TResult>, onT6: Func_2<T6, TResult>, onT7: Func_2<T7, TResult>): TResult;
264
+ Match(onT1: Action_1<T1>, onT2: Action_1<T2>, onT3: Action_1<T3>, onT4: Action_1<T4>, onT5: Action_1<T5>, onT6: Action_1<T6>, onT7: Action_1<T7>): void;
251
265
  ToString(): string | undefined;
252
266
  TryAs1(value: T1): boolean;
253
267
  TryAs2(value: T2): boolean;
@@ -260,7 +274,6 @@ export interface Union_7$instance<T1, T2, T3, T4, T5, T6, T7> {
260
274
 
261
275
 
262
276
  export const Union_7: {
263
- new<T1, T2, T3, T4, T5, T6, T7>(): Union_7<T1, T2, T3, T4, T5, T6, T7>;
264
277
  From1<T1, T2, T3, T4, T5, T6, T7>(value: T1): Union_7<T1, T2, T3, T4, T5, T6, T7>;
265
278
  From2<T1, T2, T3, T4, T5, T6, T7>(value: T2): Union_7<T1, T2, T3, T4, T5, T6, T7>;
266
279
  From3<T1, T2, T3, T4, T5, T6, T7>(value: T3): Union_7<T1, T2, T3, T4, T5, T6, T7>;
@@ -274,6 +287,8 @@ export const Union_7: {
274
287
  export type Union_7<T1, T2, T3, T4, T5, T6, T7> = Union_7$instance<T1, T2, T3, T4, T5, T6, T7>;
275
288
 
276
289
  export interface Union_8$instance<T1, T2, T3, T4, T5, T6, T7, T8> {
290
+ readonly __tsonic_type_Tsonic_Runtime_Union_8: never;
291
+
277
292
  As1(): T1;
278
293
  As2(): T2;
279
294
  As3(): T3;
@@ -292,8 +307,8 @@ export interface Union_8$instance<T1, T2, T3, T4, T5, T6, T7, T8> {
292
307
  Is6(): boolean;
293
308
  Is7(): boolean;
294
309
  Is8(): boolean;
295
- Match<TResult>(onT1: Func<T1, TResult>, onT2: Func<T2, TResult>, onT3: Func<T3, TResult>, onT4: Func<T4, TResult>, onT5: Func<T5, TResult>, onT6: Func<T6, TResult>, onT7: Func<T7, TResult>, onT8: Func<T8, TResult>): TResult;
296
- Match(onT1: Action<T1>, onT2: Action<T2>, onT3: Action<T3>, onT4: Action<T4>, onT5: Action<T5>, onT6: Action<T6>, onT7: Action<T7>, onT8: Action<T8>): void;
310
+ Match<TResult>(onT1: Func_2<T1, TResult>, onT2: Func_2<T2, TResult>, onT3: Func_2<T3, TResult>, onT4: Func_2<T4, TResult>, onT5: Func_2<T5, TResult>, onT6: Func_2<T6, TResult>, onT7: Func_2<T7, TResult>, onT8: Func_2<T8, TResult>): TResult;
311
+ Match(onT1: Action_1<T1>, onT2: Action_1<T2>, onT3: Action_1<T3>, onT4: Action_1<T4>, onT5: Action_1<T5>, onT6: Action_1<T6>, onT7: Action_1<T7>, onT8: Action_1<T8>): void;
297
312
  ToString(): string | undefined;
298
313
  TryAs1(value: T1): boolean;
299
314
  TryAs2(value: T2): boolean;
@@ -307,7 +322,6 @@ export interface Union_8$instance<T1, T2, T3, T4, T5, T6, T7, T8> {
307
322
 
308
323
 
309
324
  export const Union_8: {
310
- new<T1, T2, T3, T4, T5, T6, T7, T8>(): Union_8<T1, T2, T3, T4, T5, T6, T7, T8>;
311
325
  From1<T1, T2, T3, T4, T5, T6, T7, T8>(value: T1): Union_8<T1, T2, T3, T4, T5, T6, T7, T8>;
312
326
  From2<T1, T2, T3, T4, T5, T6, T7, T8>(value: T2): Union_8<T1, T2, T3, T4, T5, T6, T7, T8>;
313
327
  From3<T1, T2, T3, T4, T5, T6, T7, T8>(value: T3): Union_8<T1, T2, T3, T4, T5, T6, T7, T8>;
@@ -322,8 +336,8 @@ export const Union_8: {
322
336
  export type Union_8<T1, T2, T3, T4, T5, T6, T7, T8> = Union_8$instance<T1, T2, T3, T4, T5, T6, T7, T8>;
323
337
 
324
338
  export abstract class ArrayHelpers$instance {
325
- static Slice<T>(source: IEnumerable<T>, startIndex: int): T[];
326
- static Slice<T>(source: IList<T>, startIndex: int): T[];
339
+ static Slice<T>(source: IEnumerable_1<T>, startIndex: int): T[];
340
+ static Slice<T>(source: IList_1<T>, startIndex: int): T[];
327
341
  static Slice<T>(source: T[], startIndex: int): T[];
328
342
  }
329
343
 
@@ -340,9 +354,9 @@ export type Operators = Operators$instance;
340
354
 
341
355
  export abstract class Structural$instance {
342
356
  static Clone<T>(source: unknown): T | undefined;
343
- static CloneFromDictionary<T>(source: Dictionary<System_Internal.String, unknown>): T | undefined;
344
- static CreateDictionaryAdapter<T>(source: Dictionary<System_Internal.String, unknown>): DictionaryAdapter_1<T>;
345
- static ToDictionary(source: unknown): Dictionary<System_Internal.String, unknown | undefined>;
357
+ static CloneFromDictionary<T>(source: Dictionary_2<System_Internal.String, unknown>): T | undefined;
358
+ static CreateDictionaryAdapter<T>(source: Dictionary_2<System_Internal.String, unknown>): DictionaryAdapter_1<T>;
359
+ static ToDictionary(source: unknown): Dictionary_2<System_Internal.String, unknown | undefined>;
346
360
  }
347
361
 
348
362
 
package/types.js ADDED
@@ -0,0 +1,3 @@
1
+ // Runtime stub for @tsonic/core/types.js
2
+ // Tsonic erases these imports during compilation.
3
+ export {};
package/types.js.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./types.d.ts";