@tsonic/dotnet 10.0.40 → 10.0.41

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 (187) hide show
  1. package/Internal/internal/index.d.ts +4 -3
  2. package/Microsoft.CSharp.RuntimeBinder/internal/index.d.ts +19 -18
  3. package/Microsoft.VisualBasic/internal/index.d.ts +52 -54
  4. package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +117 -119
  5. package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +3 -2
  6. package/Microsoft.Win32/internal/index.d.ts +19 -18
  7. package/Microsoft.Win32.SafeHandles/internal/index.d.ts +3 -2
  8. package/README.md +76 -104
  9. package/System/bindings.json +1520 -2039
  10. package/System/internal/index.d.ts +1549 -1602
  11. package/System.Buffers/bindings.json +12 -3
  12. package/System.Buffers/internal/index.d.ts +12 -14
  13. package/System.Buffers.Binary/internal/index.d.ts +2 -4
  14. package/System.Buffers.Text/internal/index.d.ts +2 -4
  15. package/System.CodeDom.Compiler/internal/index.d.ts +32 -31
  16. package/System.Collections/internal/index.d.ts +129 -131
  17. package/System.Collections.Concurrent/bindings.json +218 -218
  18. package/System.Collections.Concurrent/internal/index.d.ts +34 -36
  19. package/System.Collections.Frozen/bindings.json +413 -611
  20. package/System.Collections.Frozen/internal/index.d.ts +81 -97
  21. package/System.Collections.Frozen.d.ts +14 -2
  22. package/System.Collections.Generic/bindings.json +9420 -14155
  23. package/System.Collections.Generic/internal/index.d.ts +547 -758
  24. package/System.Collections.Generic.d.ts +1 -1
  25. package/System.Collections.Immutable/bindings.json +6000 -9080
  26. package/System.Collections.Immutable/internal/index.d.ts +265 -354
  27. package/System.Collections.Immutable.d.ts +49 -12
  28. package/System.Collections.ObjectModel/bindings.json +132 -654
  29. package/System.Collections.ObjectModel/internal/index.d.ts +10 -30
  30. package/System.Collections.Specialized/bindings.json +0 -123
  31. package/System.Collections.Specialized/internal/index.d.ts +88 -101
  32. package/System.ComponentModel/bindings.json +163 -102
  33. package/System.ComponentModel/internal/index.d.ts +618 -608
  34. package/System.ComponentModel.DataAnnotations/internal/index.d.ts +133 -132
  35. package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +8 -7
  36. package/System.ComponentModel.Design/bindings.json +22 -292
  37. package/System.ComponentModel.Design/internal/index.d.ts +101 -109
  38. package/System.ComponentModel.Design.Serialization/internal/index.d.ts +61 -60
  39. package/System.ComponentModel.d.ts +1 -0
  40. package/System.Configuration.Assemblies/internal/index.d.ts +3 -2
  41. package/System.Data/bindings.json +4 -1
  42. package/System.Data/internal/index.d.ts +351 -350
  43. package/System.Data.Common/internal/index.d.ts +151 -152
  44. package/System.Data.SqlTypes/internal/index.d.ts +68 -67
  45. package/System.Diagnostics/bindings.json +7044 -7249
  46. package/System.Diagnostics/internal/index.d.ts +446 -461
  47. package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +44 -43
  48. package/System.Diagnostics.Contracts/internal/index.d.ts +16 -18
  49. package/System.Diagnostics.Metrics/internal/index.d.ts +92 -94
  50. package/System.Diagnostics.Metrics.d.ts +1 -1
  51. package/System.Diagnostics.SymbolStore/internal/index.d.ts +12 -11
  52. package/System.Diagnostics.Tracing/bindings.json +81 -21
  53. package/System.Diagnostics.Tracing/internal/index.d.ts +69 -56
  54. package/System.Diagnostics.Tracing.d.ts +2 -1
  55. package/System.Drawing/internal/index.d.ts +76 -75
  56. package/System.Dynamic/internal/index.d.ts +55 -57
  57. package/System.Formats.Asn1/bindings.json +48 -69
  58. package/System.Formats.Asn1/internal/index.d.ts +21 -28
  59. package/System.Formats.Tar/internal/index.d.ts +8 -7
  60. package/System.Globalization/internal/index.d.ts +40 -42
  61. package/System.IO/internal/index.d.ts +187 -189
  62. package/System.IO.Compression/internal/index.d.ts +29 -31
  63. package/System.IO.Enumeration/bindings.json +250 -250
  64. package/System.IO.Enumeration/internal/index.d.ts +15 -17
  65. package/System.IO.IsolatedStorage/internal/index.d.ts +19 -18
  66. package/System.IO.MemoryMappedFiles/internal/index.d.ts +11 -10
  67. package/System.IO.Pipelines/internal/index.d.ts +15 -17
  68. package/System.IO.Pipes/internal/index.d.ts +8 -7
  69. package/System.Linq/internal/index.d.ts +223 -225
  70. package/System.Linq.Expressions/internal/index.d.ts +205 -207
  71. package/System.Linq.Expressions.Interpreter/internal/index.d.ts +5 -4
  72. package/System.Net/bindings.json +104 -104
  73. package/System.Net/internal/index.d.ts +279 -281
  74. package/System.Net.Cache/internal/index.d.ts +3 -2
  75. package/System.Net.Http/internal/index.d.ts +128 -130
  76. package/System.Net.Http.Headers/bindings.json +0 -204
  77. package/System.Net.Http.Headers/internal/index.d.ts +111 -127
  78. package/System.Net.Http.Json/internal/index.d.ts +67 -69
  79. package/System.Net.Http.Metrics/internal/index.d.ts +6 -5
  80. package/System.Net.Mail/internal/index.d.ts +76 -78
  81. package/System.Net.Mime/internal/index.d.ts +11 -10
  82. package/System.Net.NetworkInformation/internal/index.d.ts +30 -32
  83. package/System.Net.Quic/internal/index.d.ts +10 -9
  84. package/System.Net.Security/internal/index.d.ts +87 -89
  85. package/System.Net.ServerSentEvents/internal/index.d.ts +6 -5
  86. package/System.Net.Sockets/internal/index.d.ts +91 -93
  87. package/System.Net.WebSockets/internal/index.d.ts +47 -46
  88. package/System.Numerics/bindings.json +544 -116
  89. package/System.Numerics/internal/index.d.ts +110 -112
  90. package/System.Reflection/internal/index.d.ts +270 -272
  91. package/System.Reflection.Emit/internal/index.d.ts +114 -116
  92. package/System.Reflection.Metadata/bindings.json +166 -3169
  93. package/System.Reflection.Metadata/internal/index.d.ts +154 -361
  94. package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +13 -15
  95. package/System.Reflection.PortableExecutable/bindings.json +58 -0
  96. package/System.Reflection.PortableExecutable/internal/index.d.ts +24 -11
  97. package/System.Reflection.PortableExecutable.d.ts +1 -0
  98. package/System.Resources/internal/index.d.ts +33 -35
  99. package/System.Runtime/internal/index.d.ts +12 -11
  100. package/System.Runtime.CompilerServices/bindings.json +519 -717
  101. package/System.Runtime.CompilerServices/internal/index.d.ts +113 -137
  102. package/System.Runtime.CompilerServices.d.ts +14 -4
  103. package/System.Runtime.ConstrainedExecution/internal/index.d.ts +3 -2
  104. package/System.Runtime.ExceptionServices/internal/index.d.ts +4 -3
  105. package/System.Runtime.InteropServices/bindings.json +101 -101
  106. package/System.Runtime.InteropServices/internal/index.d.ts +234 -236
  107. package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +34 -36
  108. package/System.Runtime.InteropServices.Java/internal/index.d.ts +4 -6
  109. package/System.Runtime.InteropServices.JavaScript/bindings.json +328 -328
  110. package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +67 -69
  111. package/System.Runtime.InteropServices.JavaScript.d.ts +8 -26
  112. package/System.Runtime.InteropServices.Marshalling/bindings.json +2619 -2619
  113. package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +308 -310
  114. package/System.Runtime.InteropServices.ObjectiveC/bindings.json +141 -141
  115. package/System.Runtime.InteropServices.ObjectiveC/internal/index.d.ts +17 -19
  116. package/System.Runtime.InteropServices.Swift/internal/index.d.ts +4 -6
  117. package/System.Runtime.InteropServices.Swift.d.ts +1 -1
  118. package/System.Runtime.Intrinsics/bindings.json +64 -16
  119. package/System.Runtime.Intrinsics/internal/index.d.ts +22 -24
  120. package/System.Runtime.Intrinsics.Arm/internal/index.d.ts +12 -13
  121. package/System.Runtime.Intrinsics.Wasm/internal/index.d.ts +2 -4
  122. package/System.Runtime.Intrinsics.X86/internal/index.d.ts +42 -41
  123. package/System.Runtime.Loader/bindings.json +48 -69
  124. package/System.Runtime.Loader/internal/index.d.ts +30 -34
  125. package/System.Runtime.Remoting/internal/index.d.ts +5 -4
  126. package/System.Runtime.Serialization/internal/index.d.ts +175 -177
  127. package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +29 -31
  128. package/System.Runtime.Serialization.Formatters/internal/index.d.ts +7 -6
  129. package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +10 -9
  130. package/System.Runtime.Serialization.Json/internal/index.d.ts +37 -36
  131. package/System.Runtime.Versioning/internal/index.d.ts +20 -19
  132. package/System.Security/internal/index.d.ts +64 -66
  133. package/System.Security.AccessControl/bindings.json +104 -0
  134. package/System.Security.AccessControl/internal/index.d.ts +59 -58
  135. package/System.Security.AccessControl.d.ts +6 -5
  136. package/System.Security.Authentication/internal/index.d.ts +7 -6
  137. package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +12 -11
  138. package/System.Security.Claims/internal/index.d.ts +45 -44
  139. package/System.Security.Cryptography/bindings.json +469 -469
  140. package/System.Security.Cryptography/internal/index.d.ts +269 -271
  141. package/System.Security.Cryptography.X509Certificates/bindings.json +0 -62
  142. package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +98 -105
  143. package/System.Security.Permissions/internal/index.d.ts +5 -4
  144. package/System.Security.Policy/internal/index.d.ts +11 -10
  145. package/System.Security.Principal/internal/index.d.ts +28 -27
  146. package/System.Text/bindings.json +1562 -1562
  147. package/System.Text/internal/index.d.ts +119 -121
  148. package/System.Text.Encodings.Web/internal/index.d.ts +2 -4
  149. package/System.Text.Json/bindings.json +0 -290
  150. package/System.Text.Json/internal/index.d.ts +135 -153
  151. package/System.Text.Json.Nodes/internal/index.d.ts +60 -62
  152. package/System.Text.Json.Schema/internal/index.d.ts +9 -8
  153. package/System.Text.Json.Serialization/internal/index.d.ts +32 -34
  154. package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +86 -85
  155. package/System.Text.Json.Serialization.d.ts +1 -1
  156. package/System.Text.RegularExpressions/bindings.json +198 -402
  157. package/System.Text.RegularExpressions/internal/index.d.ts +48 -64
  158. package/System.Text.Unicode/bindings.json +508 -508
  159. package/System.Text.Unicode/internal/index.d.ts +29 -31
  160. package/System.Threading/bindings.json +42 -42
  161. package/System.Threading/internal/index.d.ts +157 -159
  162. package/System.Threading.Channels/internal/index.d.ts +10 -12
  163. package/System.Threading.Tasks/bindings.json +4 -1
  164. package/System.Threading.Tasks/internal/index.d.ts +115 -114
  165. package/System.Threading.Tasks.Dataflow/internal/index.d.ts +32 -33
  166. package/System.Threading.Tasks.Sources/internal/index.d.ts +6 -5
  167. package/System.Timers/internal/index.d.ts +8 -7
  168. package/System.Transactions/internal/index.d.ts +31 -30
  169. package/System.Web/internal/index.d.ts +32 -31
  170. package/System.Windows.Input/internal/index.d.ts +5 -4
  171. package/System.Windows.Markup/internal/index.d.ts +3 -2
  172. package/System.Xml/internal/index.d.ts +383 -385
  173. package/System.Xml.Linq/internal/index.d.ts +103 -102
  174. package/System.Xml.Resolvers/internal/index.d.ts +10 -9
  175. package/System.Xml.Schema/bindings.json +76 -76
  176. package/System.Xml.Schema/internal/index.d.ts +233 -232
  177. package/System.Xml.Serialization/bindings.json +193 -0
  178. package/System.Xml.Serialization/internal/index.d.ts +277 -245
  179. package/System.Xml.Serialization.d.ts +2 -0
  180. package/System.Xml.XPath/internal/index.d.ts +46 -45
  181. package/System.Xml.Xsl/internal/index.d.ts +53 -52
  182. package/System.Xml.Xsl.Runtime/bindings.json +4 -1
  183. package/System.Xml.Xsl.Runtime/internal/index.d.ts +35 -37
  184. package/System.d.ts +2 -2
  185. package/__internal/extensions/index.d.ts +517 -515
  186. package/families.json +63 -7
  187. package/package.json +2 -2
@@ -2,11 +2,9 @@
2
2
  // Namespace: System.Threading
3
3
  // Assembly: System.Private.CoreLib, System.Threading, System.Threading.AccessControl
4
4
 
5
- // Primitive type aliases from @tsonic/core
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
5
+ // Core type aliases from @tsonic/core
6
+ import type { JsValue, fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
7
7
 
8
- // Import support types from @tsonic/core
9
- import type { ptr } from "@tsonic/core/types.js";
10
8
 
11
9
  // Import types from other namespaces
12
10
  import type { SafeWaitHandle } from "../../Microsoft.Win32.SafeHandles/internal/index.js";
@@ -74,31 +72,31 @@ export enum ThreadState {
74
72
  }
75
73
 
76
74
 
77
- export type ContextCallback = (state: unknown) => void;
75
+ export type ContextCallback = (state: JsValue | null) => void;
78
76
 
79
77
 
80
78
  export type IOCompletionCallback = (errorCode: uint, numBytes: uint, pOVERLAP: ptr<NativeOverlapped>) => void;
81
79
 
82
80
 
83
- export type ParameterizedThreadStart = (obj: unknown) => void;
81
+ export type ParameterizedThreadStart = (obj: JsValue | null) => void;
84
82
 
85
83
 
86
- export type SendOrPostCallback = (state: unknown) => void;
84
+ export type SendOrPostCallback = (state: JsValue | null) => void;
87
85
 
88
86
 
89
- export type ThreadExceptionEventHandler = (sender: unknown, e: ThreadExceptionEventArgs) => void;
87
+ export type ThreadExceptionEventHandler = (sender: JsValue, e: ThreadExceptionEventArgs) => void;
90
88
 
91
89
 
92
90
  export type ThreadStart = () => void;
93
91
 
94
92
 
95
- export type TimerCallback = (state: unknown) => void;
93
+ export type TimerCallback = (state: JsValue | null) => void;
96
94
 
97
95
 
98
- export type WaitCallback = (state: unknown) => void;
96
+ export type WaitCallback = (state: JsValue | null) => void;
99
97
 
100
98
 
101
- export type WaitOrTimerCallback = (state: unknown, timedOut: boolean) => void;
99
+ export type WaitOrTimerCallback = (state: JsValue | null, timedOut: boolean) => void;
102
100
 
103
101
 
104
102
  export interface IThreadPoolWorkItem$instance {
@@ -130,7 +128,7 @@ export interface AsyncFlowControl$instance extends System_Internal.IDisposable$i
130
128
  readonly __tsonic_iface_System_IEquatable_1: never;
131
129
 
132
130
  Dispose(): void;
133
- Equals(obj: unknown): boolean;
131
+ Equals(obj: JsValue | null): boolean;
134
132
  Equals(obj: AsyncFlowControl): boolean;
135
133
  GetHashCode(): int;
136
134
  Undo(): void;
@@ -156,8 +154,8 @@ export type AsyncFlowControl = AsyncFlowControl$instance & __AsyncFlowControl$vi
156
154
  export interface AsyncLocalValueChangedArgs_1$instance<T> {
157
155
  readonly __tsonic_type_System_Threading_AsyncLocalValueChangedArgs_1: never;
158
156
 
159
- readonly CurrentValue: T | undefined;
160
- readonly PreviousValue: T | undefined;
157
+ readonly CurrentValue: T | null;
158
+ readonly PreviousValue: T | null;
161
159
  readonly ThreadContextChanged: boolean;
162
160
  }
163
161
 
@@ -178,16 +176,16 @@ export interface CancellationToken$instance {
178
176
  readonly IsCancellationRequested: boolean;
179
177
  readonly WaitHandle: WaitHandle;
180
178
  Equals(other: CancellationToken): boolean;
181
- Equals(other: unknown): boolean;
179
+ Equals(other: JsValue | null): boolean;
182
180
  GetHashCode(): int;
183
181
  Register(callback: Action): CancellationTokenRegistration;
184
182
  Register(callback: Action, useSynchronizationContext: boolean): CancellationTokenRegistration;
185
- Register(callback: Action_1<unknown>, state: unknown): CancellationTokenRegistration;
186
- Register(callback: Action_2<unknown, CancellationToken>, state: unknown): CancellationTokenRegistration;
187
- Register(callback: Action_1<unknown>, state: unknown, useSynchronizationContext: boolean): CancellationTokenRegistration;
183
+ Register(callback: Action_1<JsValue | null>, state: JsValue | null): CancellationTokenRegistration;
184
+ Register(callback: Action_2<JsValue | null, CancellationToken>, state: JsValue | null): CancellationTokenRegistration;
185
+ Register(callback: Action_1<JsValue | null>, state: JsValue | null, useSynchronizationContext: boolean): CancellationTokenRegistration;
188
186
  ThrowIfCancellationRequested(): void;
189
- UnsafeRegister(callback: Action_1<unknown>, state: unknown): CancellationTokenRegistration;
190
- UnsafeRegister(callback: Action_2<unknown, CancellationToken>, state: unknown): CancellationTokenRegistration;
187
+ UnsafeRegister(callback: Action_1<JsValue | null>, state: JsValue | null): CancellationTokenRegistration;
188
+ UnsafeRegister(callback: Action_2<JsValue | null, CancellationToken>, state: JsValue | null): CancellationTokenRegistration;
191
189
  }
192
190
 
193
191
 
@@ -217,7 +215,7 @@ export interface CancellationTokenRegistration$instance extends System_Internal.
217
215
  readonly Token: CancellationToken;
218
216
  Dispose(): void;
219
217
  DisposeAsync(): ValueTask;
220
- Equals(obj: unknown): boolean;
218
+ Equals(obj: JsValue | null): boolean;
221
219
  Equals(other: CancellationTokenRegistration): boolean;
222
220
  GetHashCode(): int;
223
221
  Unregister(): boolean;
@@ -241,26 +239,12 @@ export interface __CancellationTokenRegistration$views {
241
239
  export type CancellationTokenRegistration = CancellationTokenRegistration$instance & __CancellationTokenRegistration$views;
242
240
 
243
241
 
244
- export interface Lock_Scope$instance {
245
- readonly __tsonic_type_System_Threading_Lock_Scope: never;
246
-
247
- Dispose(): void;
248
- }
249
-
250
-
251
- export const Lock_Scope: {
252
- new(): Lock_Scope;
253
- };
254
-
255
-
256
- export type Lock_Scope = Lock_Scope$instance;
257
-
258
242
  export interface LockCookie$instance {
259
243
  readonly __tsonic_type_System_Threading_LockCookie: never;
260
244
 
261
245
  readonly __tsonic_iface_System_IEquatable_1: never;
262
246
 
263
- Equals(obj: unknown): boolean;
247
+ Equals(obj: JsValue | null): boolean;
264
248
  Equals(obj: LockCookie): boolean;
265
249
  GetHashCode(): int;
266
250
  }
@@ -362,18 +346,18 @@ export interface AbandonedMutexException$instance extends SystemException, Syste
362
346
 
363
347
  readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never;
364
348
 
365
- readonly Mutex: Mutex | undefined;
349
+ readonly Mutex: Mutex | null;
366
350
  readonly MutexIndex: int;
367
351
  }
368
352
 
369
353
 
370
354
  export const AbandonedMutexException: {
371
355
  new(): AbandonedMutexException;
372
- new(message: string): AbandonedMutexException;
373
- new(message: string, inner: Exception): AbandonedMutexException;
374
- new(location: int, handle: WaitHandle): AbandonedMutexException;
375
- new(message: string, location: int, handle: WaitHandle): AbandonedMutexException;
376
- new(message: string, inner: Exception, location: int, handle: WaitHandle): AbandonedMutexException;
356
+ new(message: string | null): AbandonedMutexException;
357
+ new(message: string | null, inner: Exception | null): AbandonedMutexException;
358
+ new(location: int, handle: WaitHandle | null): AbandonedMutexException;
359
+ new(message: string | null, location: int, handle: WaitHandle | null): AbandonedMutexException;
360
+ new(message: string | null, inner: Exception | null, location: int, handle: WaitHandle | null): AbandonedMutexException;
377
361
  };
378
362
 
379
363
 
@@ -395,7 +379,7 @@ export interface AsyncLocal_1$instance<T> {
395
379
 
396
380
  export const AsyncLocal_1: {
397
381
  new<T>(): AsyncLocal_1<T>;
398
- new<T>(valueChangedHandler: Action_1<AsyncLocalValueChangedArgs_1<T>>): AsyncLocal_1<T>;
382
+ new<T>(valueChangedHandler: Action_1<AsyncLocalValueChangedArgs_1<T>> | null): AsyncLocal_1<T>;
399
383
  };
400
384
 
401
385
 
@@ -446,7 +430,7 @@ export interface Barrier$instance {
446
430
 
447
431
  export const Barrier: {
448
432
  new(participantCount: int): Barrier;
449
- new(participantCount: int, postPhaseAction: Action_1<Barrier>): Barrier;
433
+ new(participantCount: int, postPhaseAction: Action_1<Barrier> | null): Barrier;
450
434
  };
451
435
 
452
436
 
@@ -467,9 +451,9 @@ export interface BarrierPostPhaseException$instance extends Exception, System_Ru
467
451
 
468
452
  export const BarrierPostPhaseException: {
469
453
  new(): BarrierPostPhaseException;
470
- new(innerException: Exception): BarrierPostPhaseException;
471
- new(message: string): BarrierPostPhaseException;
472
- new(message: string, innerException: Exception): BarrierPostPhaseException;
454
+ new(innerException: Exception | null): BarrierPostPhaseException;
455
+ new(message: string | null): BarrierPostPhaseException;
456
+ new(message: string | null, innerException: Exception | null): BarrierPostPhaseException;
473
457
  };
474
458
 
475
459
 
@@ -530,7 +514,7 @@ export interface CompressedStack$instance extends System_Runtime_Serialization_I
530
514
  export const CompressedStack: {
531
515
  Capture(): CompressedStack;
532
516
  GetCompressedStack(): CompressedStack;
533
- Run(compressedStack: CompressedStack, callback: ContextCallback, state: unknown): void;
517
+ Run(compressedStack: CompressedStack, callback: ContextCallback, state: JsValue | null): void;
534
518
  };
535
519
 
536
520
 
@@ -593,14 +577,14 @@ export interface EventWaitHandle$instance extends WaitHandle$instance {
593
577
 
594
578
  export const EventWaitHandle: {
595
579
  new(initialState: boolean, mode: EventResetMode): EventWaitHandle;
596
- new(initialState: boolean, mode: EventResetMode, name: string, options: NamedWaitHandleOptions): EventWaitHandle;
597
- new(initialState: boolean, mode: EventResetMode, name: string): EventWaitHandle;
598
- new(initialState: boolean, mode: EventResetMode, name: string, options: NamedWaitHandleOptions, createdNew: boolean): EventWaitHandle;
599
- new(initialState: boolean, mode: EventResetMode, name: string, createdNew: boolean): EventWaitHandle;
580
+ new(initialState: boolean, mode: EventResetMode, name: string | null, options: NamedWaitHandleOptions): EventWaitHandle;
581
+ new(initialState: boolean, mode: EventResetMode, name: string | null): EventWaitHandle;
582
+ new(initialState: boolean, mode: EventResetMode, name: string | null, options: NamedWaitHandleOptions, createdNew: boolean): EventWaitHandle;
583
+ new(initialState: boolean, mode: EventResetMode, name: string | null, createdNew: boolean): EventWaitHandle;
600
584
  OpenExisting(name: string, options: NamedWaitHandleOptions): EventWaitHandle;
601
585
  OpenExisting(name: string): EventWaitHandle;
602
- TryOpenExisting(name: string, result: EventWaitHandle): boolean;
603
- TryOpenExisting(name: string, options: NamedWaitHandleOptions, result: EventWaitHandle): boolean;
586
+ TryOpenExisting(name: string, result: EventWaitHandle | null): boolean;
587
+ TryOpenExisting(name: string, options: NamedWaitHandleOptions, result: EventWaitHandle | null): boolean;
604
588
  };
605
589
 
606
590
 
@@ -624,11 +608,11 @@ export interface ExecutionContext$instance extends System_Internal.IDisposable$i
624
608
 
625
609
 
626
610
  export const ExecutionContext: {
627
- Capture(): ExecutionContext | undefined;
611
+ Capture(): ExecutionContext | null;
628
612
  IsFlowSuppressed(): boolean;
629
613
  Restore(executionContext: ExecutionContext): void;
630
614
  RestoreFlow(): void;
631
- Run(executionContext: ExecutionContext, callback: ContextCallback, state: unknown): void;
615
+ Run(executionContext: ExecutionContext, callback: ContextCallback, state: JsValue | null): void;
632
616
  SuppressFlow(): AsyncFlowControl;
633
617
  };
634
618
 
@@ -654,7 +638,7 @@ export interface HostExecutionContext$instance {
654
638
 
655
639
  export const HostExecutionContext: {
656
640
  new(): HostExecutionContext;
657
- new(state: unknown): HostExecutionContext;
641
+ new(state: JsValue | null): HostExecutionContext;
658
642
  };
659
643
 
660
644
 
@@ -668,9 +652,9 @@ export type HostExecutionContext = HostExecutionContext$instance & __HostExecuti
668
652
  export interface HostExecutionContextManager$instance {
669
653
  readonly __tsonic_type_System_Threading_HostExecutionContextManager: never;
670
654
 
671
- Capture(): HostExecutionContext | undefined;
672
- Revert(previousState: unknown): void;
673
- SetHostExecutionContext(hostExecutionContext: HostExecutionContext): unknown;
655
+ Capture(): HostExecutionContext | null;
656
+ Revert(previousState: JsValue): void;
657
+ SetHostExecutionContext(hostExecutionContext: HostExecutionContext): JsValue;
674
658
  }
675
659
 
676
660
 
@@ -701,6 +685,20 @@ export const Lock: {
701
685
 
702
686
  export type Lock = Lock$instance;
703
687
 
688
+ export interface Lock_Scope$instance {
689
+ readonly __tsonic_type_System_Threading_Lock_Scope: never;
690
+
691
+ Dispose(): void;
692
+ }
693
+
694
+
695
+ export const Lock_Scope: {
696
+ new(): Lock_Scope;
697
+ };
698
+
699
+
700
+ export type Lock_Scope = Lock_Scope$instance;
701
+
704
702
  export interface LockRecursionException$instance extends Exception, System_Runtime_Serialization_Internal.ISerializable$instance {
705
703
  readonly __tsonic_type_System_Threading_LockRecursionException: never;
706
704
 
@@ -711,8 +709,8 @@ export interface LockRecursionException$instance extends Exception, System_Runti
711
709
 
712
710
  export const LockRecursionException: {
713
711
  new(): LockRecursionException;
714
- new(message: string): LockRecursionException;
715
- new(message: string, innerException: Exception): LockRecursionException;
712
+ new(message: string | null): LockRecursionException;
713
+ new(message: string | null, innerException: Exception | null): LockRecursionException;
716
714
  };
717
715
 
718
716
 
@@ -788,17 +786,17 @@ export interface Mutex$instance extends WaitHandle$instance {
788
786
 
789
787
 
790
788
  export const Mutex: {
791
- new(initiallyOwned: boolean, name: string, options: NamedWaitHandleOptions, createdNew: boolean): Mutex;
792
- new(initiallyOwned: boolean, name: string, createdNew: boolean): Mutex;
793
- new(initiallyOwned: boolean, name: string, options: NamedWaitHandleOptions): Mutex;
794
- new(initiallyOwned: boolean, name: string): Mutex;
795
- new(name: string, options: NamedWaitHandleOptions): Mutex;
789
+ new(initiallyOwned: boolean, name: string | null, options: NamedWaitHandleOptions, createdNew: boolean): Mutex;
790
+ new(initiallyOwned: boolean, name: string | null, createdNew: boolean): Mutex;
791
+ new(initiallyOwned: boolean, name: string | null, options: NamedWaitHandleOptions): Mutex;
792
+ new(initiallyOwned: boolean, name: string | null): Mutex;
793
+ new(name: string | null, options: NamedWaitHandleOptions): Mutex;
796
794
  new(initiallyOwned: boolean): Mutex;
797
795
  new(): Mutex;
798
796
  OpenExisting(name: string, options: NamedWaitHandleOptions): Mutex;
799
797
  OpenExisting(name: string): Mutex;
800
- TryOpenExisting(name: string, result: Mutex): boolean;
801
- TryOpenExisting(name: string, options: NamedWaitHandleOptions, result: Mutex): boolean;
798
+ TryOpenExisting(name: string, result: Mutex | null): boolean;
799
+ TryOpenExisting(name: string, options: NamedWaitHandleOptions, result: Mutex | null): boolean;
802
800
  };
803
801
 
804
802
 
@@ -817,17 +815,17 @@ export interface Overlapped$instance {
817
815
  EventHandleIntPtr: nint;
818
816
  OffsetHigh: int;
819
817
  OffsetLow: int;
820
- Pack(iocb: IOCompletionCallback): ptr<NativeOverlapped>;
821
- Pack(iocb: IOCompletionCallback, userData: unknown): ptr<NativeOverlapped>;
822
- UnsafePack(iocb: IOCompletionCallback): ptr<NativeOverlapped>;
823
- UnsafePack(iocb: IOCompletionCallback, userData: unknown): ptr<NativeOverlapped>;
818
+ Pack(iocb: IOCompletionCallback | null): ptr<NativeOverlapped>;
819
+ Pack(iocb: IOCompletionCallback | null, userData: JsValue | null): ptr<NativeOverlapped>;
820
+ UnsafePack(iocb: IOCompletionCallback | null): ptr<NativeOverlapped>;
821
+ UnsafePack(iocb: IOCompletionCallback | null, userData: JsValue | null): ptr<NativeOverlapped>;
824
822
  }
825
823
 
826
824
 
827
825
  export const Overlapped: {
828
826
  new(): Overlapped;
829
- new(offsetLo: int, offsetHi: int, hEvent: nint, ar: IAsyncResult): Overlapped;
830
- new(offsetLo: int, offsetHi: int, hEvent: int, ar: IAsyncResult): Overlapped;
827
+ new(offsetLo: int, offsetHi: int, hEvent: nint, ar: IAsyncResult | null): Overlapped;
828
+ new(offsetLo: int, offsetHi: int, hEvent: int, ar: IAsyncResult | null): Overlapped;
831
829
  Free(nativeOverlappedPtr: ptr<NativeOverlapped>): void;
832
830
  Unpack(nativeOverlappedPtr: ptr<NativeOverlapped>): Overlapped;
833
831
  };
@@ -870,8 +868,8 @@ export interface PreAllocatedOverlapped$instance extends System_Internal.IDispos
870
868
 
871
869
 
872
870
  export const PreAllocatedOverlapped: {
873
- new(callback: IOCompletionCallback, state: unknown, pinData: unknown): PreAllocatedOverlapped;
874
- UnsafeCreate(callback: IOCompletionCallback, state: unknown, pinData: unknown): PreAllocatedOverlapped;
871
+ new(callback: IOCompletionCallback, state: JsValue | null, pinData: JsValue | null): PreAllocatedOverlapped;
872
+ UnsafeCreate(callback: IOCompletionCallback, state: JsValue | null, pinData: JsValue | null): PreAllocatedOverlapped;
875
873
  };
876
874
 
877
875
 
@@ -980,14 +978,14 @@ export interface Semaphore$instance extends WaitHandle$instance {
980
978
 
981
979
  export const Semaphore: {
982
980
  new(initialCount: int, maximumCount: int): Semaphore;
983
- new(initialCount: int, maximumCount: int, name: string, options: NamedWaitHandleOptions): Semaphore;
984
- new(initialCount: int, maximumCount: int, name: string): Semaphore;
985
- new(initialCount: int, maximumCount: int, name: string, options: NamedWaitHandleOptions, createdNew: boolean): Semaphore;
986
- new(initialCount: int, maximumCount: int, name: string, createdNew: boolean): Semaphore;
981
+ new(initialCount: int, maximumCount: int, name: string | null, options: NamedWaitHandleOptions): Semaphore;
982
+ new(initialCount: int, maximumCount: int, name: string | null): Semaphore;
983
+ new(initialCount: int, maximumCount: int, name: string | null, options: NamedWaitHandleOptions, createdNew: boolean): Semaphore;
984
+ new(initialCount: int, maximumCount: int, name: string | null, createdNew: boolean): Semaphore;
987
985
  OpenExisting(name: string, options: NamedWaitHandleOptions): Semaphore;
988
986
  OpenExisting(name: string): Semaphore;
989
- TryOpenExisting(name: string, options: NamedWaitHandleOptions, result: Semaphore): boolean;
990
- TryOpenExisting(name: string, result: Semaphore): boolean;
987
+ TryOpenExisting(name: string, options: NamedWaitHandleOptions, result: Semaphore | null): boolean;
988
+ TryOpenExisting(name: string, result: Semaphore | null): boolean;
991
989
  };
992
990
 
993
991
 
@@ -1008,8 +1006,8 @@ export interface SemaphoreFullException$instance extends SystemException, System
1008
1006
 
1009
1007
  export const SemaphoreFullException: {
1010
1008
  new(): SemaphoreFullException;
1011
- new(message: string): SemaphoreFullException;
1012
- new(message: string, innerException: Exception): SemaphoreFullException;
1009
+ new(message: string | null): SemaphoreFullException;
1010
+ new(message: string | null, innerException: Exception | null): SemaphoreFullException;
1013
1011
  };
1014
1012
 
1015
1013
 
@@ -1066,16 +1064,16 @@ export interface SynchronizationContext$instance {
1066
1064
  IsWaitNotificationRequired(): boolean;
1067
1065
  OperationCompleted(): void;
1068
1066
  OperationStarted(): void;
1069
- Post(d: SendOrPostCallback, state: unknown): void;
1070
- Send(d: SendOrPostCallback, state: unknown): void;
1067
+ Post(d: SendOrPostCallback, state: JsValue | null): void;
1068
+ Send(d: SendOrPostCallback, state: JsValue | null): void;
1071
1069
  Wait(waitHandles: nint[], waitAll: boolean, millisecondsTimeout: int): int;
1072
1070
  }
1073
1071
 
1074
1072
 
1075
1073
  export const SynchronizationContext: {
1076
1074
  new(): SynchronizationContext;
1077
- readonly Current: SynchronizationContext | undefined;
1078
- SetSynchronizationContext(syncContext: SynchronizationContext): void;
1075
+ readonly Current: SynchronizationContext | null;
1076
+ SetSynchronizationContext(syncContext: SynchronizationContext | null): void;
1079
1077
  WaitHelper(waitHandles: nint[], waitAll: boolean, millisecondsTimeout: int): int;
1080
1078
  };
1081
1079
 
@@ -1092,8 +1090,8 @@ export interface SynchronizationLockException$instance extends SystemException,
1092
1090
 
1093
1091
  export const SynchronizationLockException: {
1094
1092
  new(): SynchronizationLockException;
1095
- new(message: string): SynchronizationLockException;
1096
- new(message: string, innerException: Exception): SynchronizationLockException;
1093
+ new(message: string | null): SynchronizationLockException;
1094
+ new(message: string | null, innerException: Exception | null): SynchronizationLockException;
1097
1095
  };
1098
1096
 
1099
1097
 
@@ -1110,17 +1108,17 @@ export interface Thread$instance extends CriticalFinalizerObject {
1110
1108
  ApartmentState: ApartmentState;
1111
1109
  CurrentCulture: CultureInfo;
1112
1110
  CurrentUICulture: CultureInfo;
1113
- readonly ExecutionContext: ExecutionContext | undefined;
1111
+ readonly ExecutionContext: ExecutionContext | null;
1114
1112
  readonly IsAlive: boolean;
1115
1113
  IsBackground: boolean;
1116
1114
  IsThreadPoolThread: boolean;
1117
1115
  readonly ManagedThreadId: int;
1118
- get Name(): string | undefined;
1119
- set Name(value: string | undefined);
1116
+ get Name(): string | null;
1117
+ set Name(value: string | null);
1120
1118
  Priority: ThreadPriority;
1121
1119
  readonly ThreadState: ThreadState;
1122
1120
  Abort(): void;
1123
- Abort(stateInfo: unknown): void;
1121
+ Abort(stateInfo: JsValue | null): void;
1124
1122
  DisableComObjectEagerCleanup(): void;
1125
1123
  Finalize(): void;
1126
1124
  GetApartmentState(): ApartmentState;
@@ -1133,11 +1131,11 @@ export interface Thread$instance extends CriticalFinalizerObject {
1133
1131
  Resume(): void;
1134
1132
  SetApartmentState(state: ApartmentState): void;
1135
1133
  SetCompressedStack(stack: CompressedStack): void;
1136
- Start(parameter: unknown): void;
1134
+ Start(parameter: JsValue | null): void;
1137
1135
  Start(): void;
1138
1136
  Suspend(): void;
1139
1137
  TrySetApartmentState(state: ApartmentState): boolean;
1140
- UnsafeStart(parameter: unknown): void;
1138
+ UnsafeStart(parameter: JsValue | null): void;
1141
1139
  UnsafeStart(): void;
1142
1140
  }
1143
1141
 
@@ -1147,8 +1145,8 @@ export const Thread: {
1147
1145
  new(start: ThreadStart, maxStackSize: int): Thread;
1148
1146
  new(start: ParameterizedThreadStart): Thread;
1149
1147
  new(start: ParameterizedThreadStart, maxStackSize: int): Thread;
1150
- get CurrentPrincipal(): IPrincipal | undefined;
1151
- set CurrentPrincipal(value: IPrincipal | undefined);
1148
+ get CurrentPrincipal(): IPrincipal | null;
1149
+ set CurrentPrincipal(value: IPrincipal | null);
1152
1150
  readonly CurrentThread: Thread;
1153
1151
  AllocateDataSlot(): LocalDataStoreSlot;
1154
1152
  AllocateNamedDataSlot(name: string): LocalDataStoreSlot;
@@ -1158,13 +1156,13 @@ export const Thread: {
1158
1156
  EndThreadAffinity(): void;
1159
1157
  FreeNamedDataSlot(name: string): void;
1160
1158
  GetCurrentProcessorId(): int;
1161
- GetData(slot: LocalDataStoreSlot): unknown | undefined;
1159
+ GetData(slot: LocalDataStoreSlot): JsValue | null;
1162
1160
  GetDomain(): AppDomain;
1163
1161
  GetDomainID(): int;
1164
1162
  GetNamedDataSlot(name: string): LocalDataStoreSlot;
1165
1163
  MemoryBarrier(): void;
1166
1164
  ResetAbort(): void;
1167
- SetData(slot: LocalDataStoreSlot, data: unknown): void;
1165
+ SetData(slot: LocalDataStoreSlot, data: JsValue | null): void;
1168
1166
  Sleep(millisecondsTimeout: int): void;
1169
1167
  Sleep(timeout: TimeSpan): void;
1170
1168
  SpinWait(iterations: int): void;
@@ -1174,7 +1172,7 @@ export const Thread: {
1174
1172
  VolatileRead(address: int): int;
1175
1173
  VolatileRead(address: long): long;
1176
1174
  VolatileRead(address: nint): nint;
1177
- VolatileRead(address: unknown): unknown | undefined;
1175
+ VolatileRead(address: JsValue | null): JsValue | null;
1178
1176
  VolatileRead(address: sbyte): sbyte;
1179
1177
  VolatileRead(address: float): float;
1180
1178
  VolatileRead(address: ushort): ushort;
@@ -1187,7 +1185,7 @@ export const Thread: {
1187
1185
  VolatileWrite(address: int, value: int): void;
1188
1186
  VolatileWrite(address: long, value: long): void;
1189
1187
  VolatileWrite(address: nint, value: nint): void;
1190
- VolatileWrite(address: unknown, value: unknown): void;
1188
+ VolatileWrite(address: JsValue | null, value: JsValue | null): void;
1191
1189
  VolatileWrite(address: sbyte, value: sbyte): void;
1192
1190
  VolatileWrite(address: float, value: float): void;
1193
1191
  VolatileWrite(address: ushort, value: ushort): void;
@@ -1205,7 +1203,7 @@ export interface ThreadAbortException$instance extends SystemException, System_R
1205
1203
 
1206
1204
  readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never;
1207
1205
 
1208
- readonly ExceptionState: unknown | undefined;
1206
+ readonly ExceptionState: JsValue | null;
1209
1207
  }
1210
1208
 
1211
1209
 
@@ -1244,8 +1242,8 @@ export interface ThreadInterruptedException$instance extends SystemException, Sy
1244
1242
 
1245
1243
  export const ThreadInterruptedException: {
1246
1244
  new(): ThreadInterruptedException;
1247
- new(message: string): ThreadInterruptedException;
1248
- new(message: string, innerException: Exception): ThreadInterruptedException;
1245
+ new(message: string | null): ThreadInterruptedException;
1246
+ new(message: string | null, innerException: Exception | null): ThreadInterruptedException;
1249
1247
  };
1250
1248
 
1251
1249
 
@@ -1267,7 +1265,7 @@ export interface ThreadLocal_1$instance<T> {
1267
1265
  Dispose(): void;
1268
1266
  Dispose(disposing: boolean): void;
1269
1267
  Finalize(): void;
1270
- ToString(): string | undefined;
1268
+ ToString(): string | null;
1271
1269
  }
1272
1270
 
1273
1271
 
@@ -1292,17 +1290,17 @@ export interface ThreadPoolBoundHandle$instance extends System_Internal.IDisposa
1292
1290
  readonly __tsonic_iface_System_IDisposable: never;
1293
1291
 
1294
1292
  readonly Handle: SafeHandle;
1295
- AllocateNativeOverlapped(callback: IOCompletionCallback, state: unknown, pinData: unknown): ptr<NativeOverlapped>;
1293
+ AllocateNativeOverlapped(callback: IOCompletionCallback, state: JsValue | null, pinData: JsValue | null): ptr<NativeOverlapped>;
1296
1294
  AllocateNativeOverlapped(preAllocated: PreAllocatedOverlapped): ptr<NativeOverlapped>;
1297
1295
  Dispose(): void;
1298
1296
  FreeNativeOverlapped(overlapped: ptr<NativeOverlapped>): void;
1299
- UnsafeAllocateNativeOverlapped(callback: IOCompletionCallback, state: unknown, pinData: unknown): ptr<NativeOverlapped>;
1297
+ UnsafeAllocateNativeOverlapped(callback: IOCompletionCallback, state: JsValue | null, pinData: JsValue | null): ptr<NativeOverlapped>;
1300
1298
  }
1301
1299
 
1302
1300
 
1303
1301
  export const ThreadPoolBoundHandle: {
1304
1302
  BindHandle(handle: SafeHandle): ThreadPoolBoundHandle;
1305
- GetNativeOverlappedState(overlapped: ptr<NativeOverlapped>): unknown | undefined;
1303
+ GetNativeOverlappedState(overlapped: ptr<NativeOverlapped>): JsValue | null;
1306
1304
  };
1307
1305
 
1308
1306
 
@@ -1342,8 +1340,8 @@ export interface ThreadStateException$instance extends SystemException, System_R
1342
1340
 
1343
1341
  export const ThreadStateException: {
1344
1342
  new(): ThreadStateException;
1345
- new(message: string): ThreadStateException;
1346
- new(message: string, innerException: Exception): ThreadStateException;
1343
+ new(message: string | null): ThreadStateException;
1344
+ new(message: string | null, innerException: Exception | null): ThreadStateException;
1347
1345
  };
1348
1346
 
1349
1347
 
@@ -1372,10 +1370,10 @@ export interface Timer$instance extends MarshalByRefObject {
1372
1370
 
1373
1371
 
1374
1372
  export const Timer: {
1375
- new(callback: TimerCallback, state: unknown, dueTime: int, period: int): Timer;
1376
- new(callback: TimerCallback, state: unknown, dueTime: TimeSpan, period: TimeSpan): Timer;
1377
- new(callback: TimerCallback, state: unknown, dueTime: uint, period: uint): Timer;
1378
- new(callback: TimerCallback, state: unknown, dueTime: long, period: long): Timer;
1373
+ new(callback: TimerCallback, state: JsValue | null, dueTime: int, period: int): Timer;
1374
+ new(callback: TimerCallback, state: JsValue | null, dueTime: TimeSpan, period: TimeSpan): Timer;
1375
+ new(callback: TimerCallback, state: JsValue | null, dueTime: uint, period: uint): Timer;
1376
+ new(callback: TimerCallback, state: JsValue | null, dueTime: long, period: long): Timer;
1379
1377
  new(callback: TimerCallback): Timer;
1380
1378
  readonly ActiveCount: long;
1381
1379
  };
@@ -1444,8 +1442,8 @@ export interface WaitHandleCannotBeOpenedException$instance extends ApplicationE
1444
1442
 
1445
1443
  export const WaitHandleCannotBeOpenedException: {
1446
1444
  new(): WaitHandleCannotBeOpenedException;
1447
- new(message: string): WaitHandleCannotBeOpenedException;
1448
- new(message: string, innerException: Exception): WaitHandleCannotBeOpenedException;
1445
+ new(message: string | null): WaitHandleCannotBeOpenedException;
1446
+ new(message: string | null, innerException: Exception | null): WaitHandleCannotBeOpenedException;
1449
1447
  };
1450
1448
 
1451
1449
 
@@ -1457,9 +1455,9 @@ export type WaitHandleCannotBeOpenedException = WaitHandleCannotBeOpenedExceptio
1457
1455
 
1458
1456
 
1459
1457
  export abstract class EventWaitHandleAcl$instance {
1460
- static Create(initialState: boolean, mode: EventResetMode, name: string, createdNew: boolean, eventSecurity: EventWaitHandleSecurity): EventWaitHandle;
1458
+ static Create(initialState: boolean, mode: EventResetMode, name: string | null, createdNew: boolean, eventSecurity: EventWaitHandleSecurity | null): EventWaitHandle;
1461
1459
  static OpenExisting(name: string, rights: EventWaitHandleRights): EventWaitHandle;
1462
- static TryOpenExisting(name: string, rights: EventWaitHandleRights, result: EventWaitHandle): boolean;
1460
+ static TryOpenExisting(name: string, rights: EventWaitHandleRights, result: EventWaitHandle | null): boolean;
1463
1461
  }
1464
1462
 
1465
1463
 
@@ -1480,7 +1478,7 @@ export abstract class Interlocked$instance {
1480
1478
  static CompareExchange(location1: int, value: int, comparand: int): int;
1481
1479
  static CompareExchange(location1: long, value: long, comparand: long): long;
1482
1480
  static CompareExchange(location1: nint, value: nint, comparand: nint): nint;
1483
- static CompareExchange(location1: unknown, value: unknown, comparand: unknown): unknown | undefined;
1481
+ static CompareExchange(location1: JsValue | null, value: JsValue | null, comparand: JsValue | null): JsValue | null;
1484
1482
  static CompareExchange(location1: sbyte, value: sbyte, comparand: sbyte): sbyte;
1485
1483
  static CompareExchange(location1: float, value: float, comparand: float): float;
1486
1484
  static CompareExchange(location1: ushort, value: ushort, comparand: ushort): ushort;
@@ -1498,7 +1496,7 @@ export abstract class Interlocked$instance {
1498
1496
  static Exchange(location1: int, value: int): int;
1499
1497
  static Exchange(location1: long, value: long): long;
1500
1498
  static Exchange(location1: nint, value: nint): nint;
1501
- static Exchange(location1: unknown, value: unknown): unknown | undefined;
1499
+ static Exchange(location1: JsValue | null, value: JsValue | null): JsValue | null;
1502
1500
  static Exchange(location1: sbyte, value: sbyte): sbyte;
1503
1501
  static Exchange(location1: float, value: float): float;
1504
1502
  static Exchange(location1: ushort, value: ushort): ushort;
@@ -1524,11 +1522,11 @@ export abstract class Interlocked$instance {
1524
1522
  export type Interlocked = Interlocked$instance;
1525
1523
 
1526
1524
  export abstract class LazyInitializer$instance {
1527
- static EnsureInitialized<T>(target: T, valueFactory: Func_1<T>): T;
1528
- static EnsureInitialized<T>(target: T, initialized: boolean, syncLock: unknown, valueFactory: Func_1<T>): T;
1529
- static EnsureInitialized<T>(target: T, initialized: boolean, syncLock: unknown): T;
1530
- static EnsureInitialized<T>(target: T, syncLock: unknown, valueFactory: Func_1<T>): T;
1531
- static EnsureInitialized<T>(target: T): T;
1525
+ static EnsureInitialized<T>(target: T | null, valueFactory: Func_1<T>): T;
1526
+ static EnsureInitialized<T>(target: T, initialized: boolean, syncLock: JsValue | null, valueFactory: Func_1<T>): T;
1527
+ static EnsureInitialized<T>(target: T, initialized: boolean, syncLock: JsValue | null): T;
1528
+ static EnsureInitialized<T>(target: T | null, syncLock: JsValue | null, valueFactory: Func_1<T>): T;
1529
+ static EnsureInitialized<T>(target: T | null): T;
1532
1530
  }
1533
1531
 
1534
1532
 
@@ -1536,41 +1534,41 @@ export type LazyInitializer = LazyInitializer$instance;
1536
1534
 
1537
1535
  export abstract class Monitor$instance {
1538
1536
  static readonly LockContentionCount: long;
1539
- static Enter(obj: unknown, lockTaken: boolean): void;
1540
- static Enter(obj: unknown): void;
1541
- static Exit(obj: unknown): void;
1542
- static IsEntered(obj: unknown): boolean;
1543
- static Pulse(obj: unknown): void;
1544
- static PulseAll(obj: unknown): void;
1545
- static TryEnter(obj: unknown, lockTaken: boolean): void;
1546
- static TryEnter(obj: unknown, millisecondsTimeout: int, lockTaken: boolean): void;
1547
- static TryEnter(obj: unknown, millisecondsTimeout: int): boolean;
1548
- static TryEnter(obj: unknown, timeout: TimeSpan, lockTaken: boolean): void;
1549
- static TryEnter(obj: unknown, timeout: TimeSpan): boolean;
1550
- static TryEnter(obj: unknown): boolean;
1551
- static Wait(obj: unknown, millisecondsTimeout: int, exitContext: boolean): boolean;
1552
- static Wait(obj: unknown, millisecondsTimeout: int): boolean;
1553
- static Wait(obj: unknown, timeout: TimeSpan, exitContext: boolean): boolean;
1554
- static Wait(obj: unknown, timeout: TimeSpan): boolean;
1555
- static Wait(obj: unknown): boolean;
1537
+ static Enter(obj: JsValue, lockTaken: boolean): void;
1538
+ static Enter(obj: JsValue): void;
1539
+ static Exit(obj: JsValue): void;
1540
+ static IsEntered(obj: JsValue): boolean;
1541
+ static Pulse(obj: JsValue): void;
1542
+ static PulseAll(obj: JsValue): void;
1543
+ static TryEnter(obj: JsValue, lockTaken: boolean): void;
1544
+ static TryEnter(obj: JsValue, millisecondsTimeout: int, lockTaken: boolean): void;
1545
+ static TryEnter(obj: JsValue, millisecondsTimeout: int): boolean;
1546
+ static TryEnter(obj: JsValue, timeout: TimeSpan, lockTaken: boolean): void;
1547
+ static TryEnter(obj: JsValue, timeout: TimeSpan): boolean;
1548
+ static TryEnter(obj: JsValue): boolean;
1549
+ static Wait(obj: JsValue, millisecondsTimeout: int, exitContext: boolean): boolean;
1550
+ static Wait(obj: JsValue, millisecondsTimeout: int): boolean;
1551
+ static Wait(obj: JsValue, timeout: TimeSpan, exitContext: boolean): boolean;
1552
+ static Wait(obj: JsValue, timeout: TimeSpan): boolean;
1553
+ static Wait(obj: JsValue): boolean;
1556
1554
  }
1557
1555
 
1558
1556
 
1559
1557
  export type Monitor = Monitor$instance;
1560
1558
 
1561
1559
  export abstract class MutexAcl$instance {
1562
- static Create(initiallyOwned: boolean, name: string, createdNew: boolean, mutexSecurity: MutexSecurity): Mutex;
1560
+ static Create(initiallyOwned: boolean, name: string | null, createdNew: boolean, mutexSecurity: MutexSecurity | null): Mutex;
1563
1561
  static OpenExisting(name: string, rights: MutexRights): Mutex;
1564
- static TryOpenExisting(name: string, rights: MutexRights, result: Mutex): boolean;
1562
+ static TryOpenExisting(name: string, rights: MutexRights, result: Mutex | null): boolean;
1565
1563
  }
1566
1564
 
1567
1565
 
1568
1566
  export type MutexAcl = MutexAcl$instance;
1569
1567
 
1570
1568
  export abstract class SemaphoreAcl$instance {
1571
- static Create(initialCount: int, maximumCount: int, name: string, createdNew: boolean, semaphoreSecurity: SemaphoreSecurity): Semaphore;
1569
+ static Create(initialCount: int, maximumCount: int, name: string | null, createdNew: boolean, semaphoreSecurity: SemaphoreSecurity | null): Semaphore;
1572
1570
  static OpenExisting(name: string, rights: SemaphoreRights): Semaphore;
1573
- static TryOpenExisting(name: string, rights: SemaphoreRights, result: Semaphore): boolean;
1571
+ static TryOpenExisting(name: string, rights: SemaphoreRights, result: Semaphore | null): boolean;
1574
1572
  }
1575
1573
 
1576
1574
 
@@ -1598,22 +1596,22 @@ export abstract class ThreadPool$instance {
1598
1596
  static GetMaxThreads(workerThreads: int, completionPortThreads: int): void;
1599
1597
  static GetMinThreads(workerThreads: int, completionPortThreads: int): void;
1600
1598
  static QueueUserWorkItem<TState>(callBack: Action_1<TState>, state: TState, preferLocal: boolean): boolean;
1601
- static QueueUserWorkItem(callBack: WaitCallback, state: unknown): boolean;
1599
+ static QueueUserWorkItem(callBack: WaitCallback, state: JsValue | null): boolean;
1602
1600
  static QueueUserWorkItem(callBack: WaitCallback): boolean;
1603
- static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, millisecondsTimeOutInterval: int, executeOnlyOnce: boolean): RegisteredWaitHandle;
1604
- static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, millisecondsTimeOutInterval: long, executeOnlyOnce: boolean): RegisteredWaitHandle;
1605
- static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, timeout: TimeSpan, executeOnlyOnce: boolean): RegisteredWaitHandle;
1606
- static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, millisecondsTimeOutInterval: uint, executeOnlyOnce: boolean): RegisteredWaitHandle;
1601
+ static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: JsValue | null, millisecondsTimeOutInterval: int, executeOnlyOnce: boolean): RegisteredWaitHandle;
1602
+ static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: JsValue | null, millisecondsTimeOutInterval: long, executeOnlyOnce: boolean): RegisteredWaitHandle;
1603
+ static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: JsValue | null, timeout: TimeSpan, executeOnlyOnce: boolean): RegisteredWaitHandle;
1604
+ static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: JsValue | null, millisecondsTimeOutInterval: uint, executeOnlyOnce: boolean): RegisteredWaitHandle;
1607
1605
  static SetMaxThreads(workerThreads: int, completionPortThreads: int): boolean;
1608
1606
  static SetMinThreads(workerThreads: int, completionPortThreads: int): boolean;
1609
1607
  static UnsafeQueueNativeOverlapped(overlapped: ptr<NativeOverlapped>): boolean;
1610
1608
  static UnsafeQueueUserWorkItem<TState>(callBack: Action_1<TState>, state: TState, preferLocal: boolean): boolean;
1611
1609
  static UnsafeQueueUserWorkItem(callBack: IThreadPoolWorkItem, preferLocal: boolean): boolean;
1612
- static UnsafeQueueUserWorkItem(callBack: WaitCallback, state: unknown): boolean;
1613
- static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, millisecondsTimeOutInterval: int, executeOnlyOnce: boolean): RegisteredWaitHandle;
1614
- static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, millisecondsTimeOutInterval: long, executeOnlyOnce: boolean): RegisteredWaitHandle;
1615
- static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, timeout: TimeSpan, executeOnlyOnce: boolean): RegisteredWaitHandle;
1616
- static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, millisecondsTimeOutInterval: uint, executeOnlyOnce: boolean): RegisteredWaitHandle;
1610
+ static UnsafeQueueUserWorkItem(callBack: WaitCallback, state: JsValue | null): boolean;
1611
+ static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: JsValue | null, millisecondsTimeOutInterval: int, executeOnlyOnce: boolean): RegisteredWaitHandle;
1612
+ static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: JsValue | null, millisecondsTimeOutInterval: long, executeOnlyOnce: boolean): RegisteredWaitHandle;
1613
+ static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: JsValue | null, timeout: TimeSpan, executeOnlyOnce: boolean): RegisteredWaitHandle;
1614
+ static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: JsValue | null, millisecondsTimeOutInterval: uint, executeOnlyOnce: boolean): RegisteredWaitHandle;
1617
1615
  }
1618
1616
 
1619
1617
 
@@ -1665,7 +1663,7 @@ export type Volatile = Volatile$instance;
1665
1663
 
1666
1664
  export abstract class WaitHandleExtensions$instance {
1667
1665
  static GetSafeWaitHandle(waitHandle: WaitHandle): SafeWaitHandle;
1668
- static SetSafeWaitHandle(waitHandle: WaitHandle, value: SafeWaitHandle): void;
1666
+ static SetSafeWaitHandle(waitHandle: WaitHandle, value: SafeWaitHandle | null): void;
1669
1667
  }
1670
1668
 
1671
1669