@tsonic/dotnet 0.8.2 → 0.8.4

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 (157) hide show
  1. package/Microsoft.CSharp.RuntimeBinder/internal/index.d.ts +18 -18
  2. package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +1 -1
  3. package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +2 -2
  4. package/Microsoft.Win32/internal/index.d.ts +10 -10
  5. package/System/internal/index.d.ts +964 -950
  6. package/System.Buffers/internal/index.d.ts +2 -2
  7. package/System.Buffers.d.ts +3 -0
  8. package/System.CodeDom.Compiler/internal/index.d.ts +10 -10
  9. package/System.Collections/internal/index.d.ts +30 -24
  10. package/System.Collections.Concurrent/internal/index.d.ts +10 -10
  11. package/System.Collections.Frozen/bindings.json +20 -20
  12. package/System.Collections.Frozen/internal/index.d.ts +6 -6
  13. package/System.Collections.Frozen/internal/metadata.json +10 -10
  14. package/System.Collections.Frozen.d.ts +3 -0
  15. package/System.Collections.Generic/bindings.json +20 -44
  16. package/System.Collections.Generic/internal/index.d.ts +54 -54
  17. package/System.Collections.Generic/internal/metadata.json +10 -26
  18. package/System.Collections.Generic.d.ts +3 -0
  19. package/System.Collections.Immutable/internal/index.d.ts +88 -88
  20. package/System.Collections.Immutable.d.ts +3 -0
  21. package/System.Collections.ObjectModel/internal/index.d.ts +15 -15
  22. package/System.Collections.Specialized/internal/index.d.ts +53 -49
  23. package/System.ComponentModel/internal/index.d.ts +388 -376
  24. package/System.ComponentModel.DataAnnotations/internal/index.d.ts +55 -45
  25. package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +3 -2
  26. package/System.ComponentModel.Design/internal/index.d.ts +36 -36
  27. package/System.ComponentModel.Design.Serialization/internal/index.d.ts +20 -20
  28. package/System.Data/internal/index.d.ts +171 -163
  29. package/System.Data.Common/internal/index.d.ts +36 -28
  30. package/System.Data.Common.d.ts +3 -0
  31. package/System.Data.SqlTypes/internal/index.d.ts +23 -23
  32. package/System.Data.d.ts +3 -0
  33. package/System.Diagnostics/internal/index.d.ts +250 -228
  34. package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +37 -23
  35. package/System.Diagnostics.Contracts/internal/index.d.ts +4 -4
  36. package/System.Diagnostics.Metrics/internal/index.d.ts +34 -29
  37. package/System.Diagnostics.Metrics.d.ts +3 -0
  38. package/System.Diagnostics.SymbolStore/internal/index.d.ts +4 -4
  39. package/System.Diagnostics.Tracing/internal/index.d.ts +26 -24
  40. package/System.Diagnostics.d.ts +3 -0
  41. package/System.Drawing/internal/index.d.ts +76 -76
  42. package/System.Dynamic/internal/index.d.ts +26 -26
  43. package/System.Formats.Asn1/internal/index.d.ts +4 -4
  44. package/System.Formats.Tar/internal/index.d.ts +5 -4
  45. package/System.Globalization/internal/index.d.ts +22 -20
  46. package/System.Globalization.d.ts +3 -0
  47. package/System.IO/internal/index.d.ts +106 -103
  48. package/System.IO.Compression/internal/index.d.ts +24 -24
  49. package/System.IO.Compression.d.ts +3 -0
  50. package/System.IO.Enumeration/internal/index.d.ts +7 -5
  51. package/System.IO.IsolatedStorage/internal/index.d.ts +9 -9
  52. package/System.IO.MemoryMappedFiles/internal/index.d.ts +8 -8
  53. package/System.IO.Pipelines/internal/index.d.ts +5 -5
  54. package/System.IO.Pipelines.d.ts +3 -0
  55. package/System.IO.Pipes/internal/index.d.ts +4 -4
  56. package/System.IO.Pipes.d.ts +3 -0
  57. package/System.IO.d.ts +3 -0
  58. package/System.Linq/internal/index.d.ts +207 -207
  59. package/System.Linq.Expressions/internal/index.d.ts +160 -160
  60. package/System.Linq.d.ts +3 -0
  61. package/System.Net/internal/index.d.ts +157 -131
  62. package/System.Net.Cache/internal/index.d.ts +2 -2
  63. package/System.Net.Http/internal/index.d.ts +69 -53
  64. package/System.Net.Http.Headers/internal/index.d.ts +62 -45
  65. package/System.Net.Http.Json/internal/index.d.ts +38 -38
  66. package/System.Net.Http.Json.d.ts +3 -0
  67. package/System.Net.Http.Metrics/internal/index.d.ts +1 -1
  68. package/System.Net.Mail/internal/index.d.ts +80 -70
  69. package/System.Net.Mime/internal/index.d.ts +4 -2
  70. package/System.Net.NetworkInformation/internal/index.d.ts +23 -23
  71. package/System.Net.Quic/internal/index.d.ts +4 -3
  72. package/System.Net.Security/internal/index.d.ts +65 -49
  73. package/System.Net.ServerSentEvents/internal/index.d.ts +3 -2
  74. package/System.Net.Sockets/internal/index.d.ts +49 -42
  75. package/System.Net.Sockets.d.ts +3 -0
  76. package/System.Net.WebSockets/internal/index.d.ts +35 -29
  77. package/System.Numerics/bindings.json +96 -72
  78. package/System.Numerics/internal/index.d.ts +93 -91
  79. package/System.Numerics/internal/metadata.json +64 -48
  80. package/System.Numerics.d.ts +3 -0
  81. package/System.Reflection/internal/index.d.ts +129 -126
  82. package/System.Reflection.Emit/internal/index.d.ts +105 -105
  83. package/System.Reflection.Metadata/internal/index.d.ts +15 -15
  84. package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +4 -4
  85. package/System.Reflection.Metadata.Ecma335.d.ts +3 -0
  86. package/System.Reflection.Metadata.d.ts +3 -0
  87. package/System.Reflection.PortableExecutable/internal/index.d.ts +2 -2
  88. package/System.Reflection.d.ts +3 -0
  89. package/System.Resources/internal/index.d.ts +20 -19
  90. package/System.Runtime/internal/index.d.ts +6 -5
  91. package/System.Runtime.CompilerServices/internal/index.d.ts +30 -28
  92. package/System.Runtime.InteropServices/internal/index.d.ts +85 -83
  93. package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +9 -9
  94. package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +20 -20
  95. package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +28 -26
  96. package/System.Runtime.InteropServices.d.ts +3 -0
  97. package/System.Runtime.Intrinsics.d.ts +3 -0
  98. package/System.Runtime.Loader/internal/index.d.ts +2 -2
  99. package/System.Runtime.Remoting/internal/index.d.ts +1 -1
  100. package/System.Runtime.Serialization/internal/index.d.ts +66 -54
  101. package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +3 -3
  102. package/System.Runtime.Serialization.Formatters/internal/index.d.ts +4 -2
  103. package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +5 -4
  104. package/System.Runtime.Serialization.Json/internal/index.d.ts +22 -21
  105. package/System.Runtime.Serialization.Json.d.ts +3 -0
  106. package/System.Runtime.Serialization.d.ts +3 -0
  107. package/System.Runtime.Versioning/internal/index.d.ts +12 -9
  108. package/System.Security/internal/index.d.ts +62 -52
  109. package/System.Security.AccessControl/internal/index.d.ts +29 -25
  110. package/System.Security.Authentication/internal/index.d.ts +4 -4
  111. package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +8 -8
  112. package/System.Security.Claims/internal/index.d.ts +21 -15
  113. package/System.Security.Cryptography/bindings.json +4212 -4212
  114. package/System.Security.Cryptography/internal/index.d.ts +155 -141
  115. package/System.Security.Cryptography.X509Certificates/bindings.json +768 -768
  116. package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +83 -82
  117. package/System.Security.Cryptography.X509Certificates.d.ts +3 -0
  118. package/System.Security.Permissions/internal/index.d.ts +2 -2
  119. package/System.Security.Principal/internal/index.d.ts +3 -3
  120. package/System.Text/internal/index.d.ts +48 -46
  121. package/System.Text.Json/internal/index.d.ts +87 -81
  122. package/System.Text.Json.Nodes/internal/index.d.ts +41 -41
  123. package/System.Text.Json.Schema/internal/index.d.ts +4 -3
  124. package/System.Text.Json.Schema.d.ts +3 -0
  125. package/System.Text.Json.Serialization/internal/index.d.ts +5 -4
  126. package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +55 -30
  127. package/System.Text.Json.Serialization.Metadata.d.ts +3 -0
  128. package/System.Text.Json.d.ts +3 -0
  129. package/System.Text.RegularExpressions/internal/index.d.ts +5 -5
  130. package/System.Text.Unicode/internal/index.d.ts +4 -4
  131. package/System.Text.d.ts +3 -0
  132. package/System.Threading/internal/index.d.ts +86 -85
  133. package/System.Threading.Channels/internal/index.d.ts +8 -8
  134. package/System.Threading.Tasks/internal/index.d.ts +82 -82
  135. package/System.Threading.Tasks.Dataflow/internal/index.d.ts +25 -26
  136. package/System.Threading.Tasks.Dataflow.d.ts +3 -0
  137. package/System.Threading.Tasks.Sources/internal/index.d.ts +4 -4
  138. package/System.Threading.Tasks.d.ts +3 -0
  139. package/System.Threading.d.ts +3 -0
  140. package/System.Timers/internal/index.d.ts +5 -3
  141. package/System.Transactions/internal/index.d.ts +18 -16
  142. package/System.Web/internal/index.d.ts +30 -30
  143. package/System.Windows.Input/internal/index.d.ts +2 -2
  144. package/System.Xml/internal/index.d.ts +162 -161
  145. package/System.Xml.Linq/internal/index.d.ts +38 -37
  146. package/System.Xml.Linq.d.ts +3 -0
  147. package/System.Xml.Resolvers/internal/index.d.ts +5 -5
  148. package/System.Xml.Schema/internal/index.d.ts +133 -88
  149. package/System.Xml.Schema.d.ts +3 -0
  150. package/System.Xml.Serialization/internal/index.d.ts +138 -117
  151. package/System.Xml.XPath/internal/index.d.ts +12 -12
  152. package/System.Xml.XPath.d.ts +3 -0
  153. package/System.Xml.Xsl/internal/index.d.ts +34 -34
  154. package/System.Xml.Xsl.Runtime/internal/index.d.ts +16 -16
  155. package/System.d.ts +3 -0
  156. package/__internal/extensions/index.d.ts +2516 -2196
  157. package/package.json +2 -2
@@ -132,7 +132,7 @@ export interface ValueTask_1$instance<TResult> {
132
132
  getAwaiter(): ValueTaskAwaiter_1<TResult>;
133
133
  getHashCode(): int;
134
134
  preserve(): ValueTask_1<TResult>;
135
- toString(): string;
135
+ toString(): string | undefined;
136
136
  }
137
137
 
138
138
 
@@ -219,21 +219,21 @@ export interface Task$instance {
219
219
  continueWith(continuationAction: Action_1<Task>, scheduler: TaskScheduler): Task;
220
220
  continueWith(continuationAction: Action_1<Task>, continuationOptions: TaskContinuationOptions): Task;
221
221
  continueWith(continuationAction: Action_1<Task>, cancellationToken: CancellationToken, continuationOptions: TaskContinuationOptions, scheduler: TaskScheduler): Task;
222
- continueWith(continuationAction: Action_2<Task, unknown | undefined>, state: unknown | undefined): Task;
223
- continueWith(continuationAction: Action_2<Task, unknown | undefined>, state: unknown | undefined, cancellationToken: CancellationToken): Task;
224
- continueWith(continuationAction: Action_2<Task, unknown | undefined>, state: unknown | undefined, scheduler: TaskScheduler): Task;
225
- continueWith(continuationAction: Action_2<Task, unknown | undefined>, state: unknown | undefined, continuationOptions: TaskContinuationOptions): Task;
226
- continueWith(continuationAction: Action_2<Task, unknown | undefined>, state: unknown | undefined, cancellationToken: CancellationToken, continuationOptions: TaskContinuationOptions, scheduler: TaskScheduler): Task;
222
+ continueWith(continuationAction: Action_2<Task, unknown>, state: unknown): Task;
223
+ continueWith(continuationAction: Action_2<Task, unknown>, state: unknown, cancellationToken: CancellationToken): Task;
224
+ continueWith(continuationAction: Action_2<Task, unknown>, state: unknown, scheduler: TaskScheduler): Task;
225
+ continueWith(continuationAction: Action_2<Task, unknown>, state: unknown, continuationOptions: TaskContinuationOptions): Task;
226
+ continueWith(continuationAction: Action_2<Task, unknown>, state: unknown, cancellationToken: CancellationToken, continuationOptions: TaskContinuationOptions, scheduler: TaskScheduler): Task;
227
227
  continueWith<TResult>(continuationFunction: Func_2<Task, TResult>): Task_1<TResult>;
228
228
  continueWith<TResult>(continuationFunction: Func_2<Task, TResult>, cancellationToken: CancellationToken): Task_1<TResult>;
229
229
  continueWith<TResult>(continuationFunction: Func_2<Task, TResult>, scheduler: TaskScheduler): Task_1<TResult>;
230
230
  continueWith<TResult>(continuationFunction: Func_2<Task, TResult>, continuationOptions: TaskContinuationOptions): Task_1<TResult>;
231
231
  continueWith<TResult>(continuationFunction: Func_2<Task, TResult>, cancellationToken: CancellationToken, continuationOptions: TaskContinuationOptions, scheduler: TaskScheduler): Task_1<TResult>;
232
- continueWith<TResult>(continuationFunction: Func_3<Task, unknown | undefined, TResult>, state: unknown): Task_1<TResult>;
233
- continueWith<TResult>(continuationFunction: Func_3<Task, unknown | undefined, TResult>, state: unknown, cancellationToken: CancellationToken): Task_1<TResult>;
234
- continueWith<TResult>(continuationFunction: Func_3<Task, unknown | undefined, TResult>, state: unknown | undefined, scheduler: TaskScheduler): Task_1<TResult>;
235
- continueWith<TResult>(continuationFunction: Func_3<Task, unknown | undefined, TResult>, state: unknown, continuationOptions: TaskContinuationOptions): Task_1<TResult>;
236
- continueWith<TResult>(continuationFunction: Func_3<Task, unknown | undefined, TResult>, state: unknown | undefined, cancellationToken: CancellationToken, continuationOptions: TaskContinuationOptions, scheduler: TaskScheduler): Task_1<TResult>;
232
+ continueWith<TResult>(continuationFunction: Func_3<Task, unknown, TResult>, state: unknown): Task_1<TResult>;
233
+ continueWith<TResult>(continuationFunction: Func_3<Task, unknown, TResult>, state: unknown, cancellationToken: CancellationToken): Task_1<TResult>;
234
+ continueWith<TResult>(continuationFunction: Func_3<Task, unknown, TResult>, state: unknown, scheduler: TaskScheduler): Task_1<TResult>;
235
+ continueWith<TResult>(continuationFunction: Func_3<Task, unknown, TResult>, state: unknown, continuationOptions: TaskContinuationOptions): Task_1<TResult>;
236
+ continueWith<TResult>(continuationFunction: Func_3<Task, unknown, TResult>, state: unknown, cancellationToken: CancellationToken, continuationOptions: TaskContinuationOptions, scheduler: TaskScheduler): Task_1<TResult>;
237
237
  dispose(): void;
238
238
  getAwaiter(): TaskAwaiter;
239
239
  runSynchronously(): void;
@@ -259,10 +259,10 @@ export const Task: {
259
259
  new(action: Action, cancellationToken: CancellationToken): Task;
260
260
  new(action: Action, creationOptions: TaskCreationOptions): Task;
261
261
  new(action: Action, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions): Task;
262
- new(action: Action_1<unknown | undefined>, state: unknown): Task;
263
- new(action: Action_1<unknown | undefined>, state: unknown, cancellationToken: CancellationToken): Task;
264
- new(action: Action_1<unknown | undefined>, state: unknown, creationOptions: TaskCreationOptions): Task;
265
- new(action: Action_1<unknown | undefined>, state: unknown, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions): Task;
262
+ new(action: Action_1<unknown>, state: unknown): Task;
263
+ new(action: Action_1<unknown>, state: unknown, cancellationToken: CancellationToken): Task;
264
+ new(action: Action_1<unknown>, state: unknown, creationOptions: TaskCreationOptions): Task;
265
+ new(action: Action_1<unknown>, state: unknown, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions): Task;
266
266
  readonly currentId: Nullable_1<System_Internal.Int32>;
267
267
  readonly factory: TaskFactory;
268
268
  readonly completedTask: Task;
@@ -281,8 +281,8 @@ export const Task: {
281
281
  run<TResult>(function_: Func_1<TResult>): Task_1<TResult>;
282
282
  run(action: Action, cancellationToken: CancellationToken): Task;
283
283
  run(action: Action): Task;
284
- run(function_: Func_1<Task | undefined>, cancellationToken: CancellationToken): Task;
285
- run(function_: Func_1<Task | undefined>): Task;
284
+ run(function_: Func_1<Task>, cancellationToken: CancellationToken): Task;
285
+ run(function_: Func_1<Task>): Task;
286
286
  waitAll(tasks: IEnumerable_1<Task>, cancellationToken?: CancellationToken): void;
287
287
  waitAll(tasks: ReadOnlySpan_1<Task>): void;
288
288
  waitAll(tasks: Task[], millisecondsTimeout: int, cancellationToken: CancellationToken): boolean;
@@ -336,34 +336,34 @@ export interface Task_1$instance<TResult> extends Task$instance {
336
336
  configureAwait(options: ConfigureAwaitOptions): ConfiguredTaskAwaitable;
337
337
  continueWith(continuationAction: Action_1<Task_1<TResult>>, scheduler: TaskScheduler): Task;
338
338
  continueWith(continuationAction: Action_1<Task_1<TResult>>, continuationOptions: TaskContinuationOptions): Task;
339
- continueWith(continuationAction: Action_2<Task_1<TResult>, unknown | undefined>, state: unknown | undefined): Task;
340
- continueWith(continuationAction: Action_2<Task_1<TResult>, unknown | undefined>, state: unknown | undefined, scheduler: TaskScheduler): Task;
341
- continueWith(continuationAction: Action_2<Task_1<TResult>, unknown | undefined>, state: unknown | undefined, continuationOptions: TaskContinuationOptions): Task;
339
+ continueWith(continuationAction: Action_2<Task_1<TResult>, unknown>, state: unknown): Task;
340
+ continueWith(continuationAction: Action_2<Task_1<TResult>, unknown>, state: unknown, scheduler: TaskScheduler): Task;
341
+ continueWith(continuationAction: Action_2<Task_1<TResult>, unknown>, state: unknown, continuationOptions: TaskContinuationOptions): Task;
342
342
  continueWith<TNewResult>(continuationFunction: Func_2<Task_1<TResult>, TNewResult>, scheduler: TaskScheduler): Task_1<TNewResult>;
343
343
  continueWith<TNewResult>(continuationFunction: Func_2<Task_1<TResult>, TNewResult>, continuationOptions: TaskContinuationOptions): Task_1<TNewResult>;
344
- continueWith<TNewResult>(continuationFunction: Func_3<Task_1<TResult>, unknown | undefined, TNewResult>, state: unknown): Task_1<TNewResult>;
345
- continueWith<TNewResult>(continuationFunction: Func_3<Task_1<TResult>, unknown | undefined, TNewResult>, state: unknown | undefined, scheduler: TaskScheduler): Task_1<TNewResult>;
346
- continueWith<TNewResult>(continuationFunction: Func_3<Task_1<TResult>, unknown | undefined, TNewResult>, state: unknown, continuationOptions: TaskContinuationOptions): Task_1<TNewResult>;
344
+ continueWith<TNewResult>(continuationFunction: Func_3<Task_1<TResult>, unknown, TNewResult>, state: unknown): Task_1<TNewResult>;
345
+ continueWith<TNewResult>(continuationFunction: Func_3<Task_1<TResult>, unknown, TNewResult>, state: unknown, scheduler: TaskScheduler): Task_1<TNewResult>;
346
+ continueWith<TNewResult>(continuationFunction: Func_3<Task_1<TResult>, unknown, TNewResult>, state: unknown, continuationOptions: TaskContinuationOptions): Task_1<TNewResult>;
347
347
  continueWith(continuationAction: Action_1<Task>): Task;
348
348
  continueWith(continuationAction: Action_1<Task>, cancellationToken: CancellationToken): Task;
349
349
  continueWith(continuationAction: Action_1<Task>, scheduler: TaskScheduler): Task;
350
350
  continueWith(continuationAction: Action_1<Task>, continuationOptions: TaskContinuationOptions): Task;
351
351
  continueWith(continuationAction: Action_1<Task>, cancellationToken: CancellationToken, continuationOptions: TaskContinuationOptions, scheduler: TaskScheduler): Task;
352
- continueWith(continuationAction: Action_2<Task, unknown | undefined>, state: unknown | undefined): Task;
353
- continueWith(continuationAction: Action_2<Task, unknown | undefined>, state: unknown | undefined, cancellationToken: CancellationToken): Task;
354
- continueWith(continuationAction: Action_2<Task, unknown | undefined>, state: unknown | undefined, scheduler: TaskScheduler): Task;
355
- continueWith(continuationAction: Action_2<Task, unknown | undefined>, state: unknown | undefined, continuationOptions: TaskContinuationOptions): Task;
356
- continueWith(continuationAction: Action_2<Task, unknown | undefined>, state: unknown | undefined, cancellationToken: CancellationToken, continuationOptions: TaskContinuationOptions, scheduler: TaskScheduler): Task;
352
+ continueWith(continuationAction: Action_2<Task, unknown>, state: unknown): Task;
353
+ continueWith(continuationAction: Action_2<Task, unknown>, state: unknown, cancellationToken: CancellationToken): Task;
354
+ continueWith(continuationAction: Action_2<Task, unknown>, state: unknown, scheduler: TaskScheduler): Task;
355
+ continueWith(continuationAction: Action_2<Task, unknown>, state: unknown, continuationOptions: TaskContinuationOptions): Task;
356
+ continueWith(continuationAction: Action_2<Task, unknown>, state: unknown, cancellationToken: CancellationToken, continuationOptions: TaskContinuationOptions, scheduler: TaskScheduler): Task;
357
357
  continueWith<TResult>(continuationFunction: Func_2<Task, TResult>): Task_1<TResult>;
358
358
  continueWith<TResult>(continuationFunction: Func_2<Task, TResult>, cancellationToken: CancellationToken): Task_1<TResult>;
359
359
  continueWith<TResult>(continuationFunction: Func_2<Task, TResult>, scheduler: TaskScheduler): Task_1<TResult>;
360
360
  continueWith<TResult>(continuationFunction: Func_2<Task, TResult>, continuationOptions: TaskContinuationOptions): Task_1<TResult>;
361
361
  continueWith<TResult>(continuationFunction: Func_2<Task, TResult>, cancellationToken: CancellationToken, continuationOptions: TaskContinuationOptions, scheduler: TaskScheduler): Task_1<TResult>;
362
- continueWith<TResult>(continuationFunction: Func_3<Task, unknown | undefined, TResult>, state: unknown): Task_1<TResult>;
363
- continueWith<TResult>(continuationFunction: Func_3<Task, unknown | undefined, TResult>, state: unknown, cancellationToken: CancellationToken): Task_1<TResult>;
364
- continueWith<TResult>(continuationFunction: Func_3<Task, unknown | undefined, TResult>, state: unknown | undefined, scheduler: TaskScheduler): Task_1<TResult>;
365
- continueWith<TResult>(continuationFunction: Func_3<Task, unknown | undefined, TResult>, state: unknown, continuationOptions: TaskContinuationOptions): Task_1<TResult>;
366
- continueWith<TResult>(continuationFunction: Func_3<Task, unknown | undefined, TResult>, state: unknown | undefined, cancellationToken: CancellationToken, continuationOptions: TaskContinuationOptions, scheduler: TaskScheduler): Task_1<TResult>;
362
+ continueWith<TResult>(continuationFunction: Func_3<Task, unknown, TResult>, state: unknown): Task_1<TResult>;
363
+ continueWith<TResult>(continuationFunction: Func_3<Task, unknown, TResult>, state: unknown, cancellationToken: CancellationToken): Task_1<TResult>;
364
+ continueWith<TResult>(continuationFunction: Func_3<Task, unknown, TResult>, state: unknown, scheduler: TaskScheduler): Task_1<TResult>;
365
+ continueWith<TResult>(continuationFunction: Func_3<Task, unknown, TResult>, state: unknown, continuationOptions: TaskContinuationOptions): Task_1<TResult>;
366
+ continueWith<TResult>(continuationFunction: Func_3<Task, unknown, TResult>, state: unknown, cancellationToken: CancellationToken, continuationOptions: TaskContinuationOptions, scheduler: TaskScheduler): Task_1<TResult>;
367
367
  dispose(): void;
368
368
  getAwaiter(): TaskAwaiter;
369
369
  waitAsync(timeout: TimeSpan): Task_1<TResult>;
@@ -381,10 +381,10 @@ export const Task_1: {
381
381
  new<TResult>(function_: Func_1<TResult>, cancellationToken: CancellationToken): Task_1<TResult>;
382
382
  new<TResult>(function_: Func_1<TResult>, creationOptions: TaskCreationOptions): Task_1<TResult>;
383
383
  new<TResult>(function_: Func_1<TResult>, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions): Task_1<TResult>;
384
- new<TResult>(function_: Func_2<unknown | undefined, TResult>, state: unknown): Task_1<TResult>;
385
- new<TResult>(function_: Func_2<unknown | undefined, TResult>, state: unknown, cancellationToken: CancellationToken): Task_1<TResult>;
386
- new<TResult>(function_: Func_2<unknown | undefined, TResult>, state: unknown, creationOptions: TaskCreationOptions): Task_1<TResult>;
387
- new<TResult>(function_: Func_2<unknown | undefined, TResult>, state: unknown, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions): Task_1<TResult>;
384
+ new<TResult>(function_: Func_2<unknown, TResult>, state: unknown): Task_1<TResult>;
385
+ new<TResult>(function_: Func_2<unknown, TResult>, state: unknown, cancellationToken: CancellationToken): Task_1<TResult>;
386
+ new<TResult>(function_: Func_2<unknown, TResult>, state: unknown, creationOptions: TaskCreationOptions): Task_1<TResult>;
387
+ new<TResult>(function_: Func_2<unknown, TResult>, state: unknown, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions): Task_1<TResult>;
388
388
  };
389
389
 
390
390
 
@@ -406,10 +406,10 @@ export interface TaskCanceledException$instance extends OperationCanceledExcepti
406
406
 
407
407
  export const TaskCanceledException: {
408
408
  new(): TaskCanceledException;
409
- new(message: string | undefined): TaskCanceledException;
410
- new(message: string | undefined, innerException: Exception | undefined): TaskCanceledException;
411
- new(message: string | undefined, innerException: Exception | undefined, token: CancellationToken): TaskCanceledException;
412
- new(task: Task | undefined): TaskCanceledException;
409
+ new(message: string): TaskCanceledException;
410
+ new(message: string, innerException: Exception): TaskCanceledException;
411
+ new(message: string, innerException: Exception, token: CancellationToken): TaskCanceledException;
412
+ new(task: Task): TaskCanceledException;
413
413
  };
414
414
 
415
415
 
@@ -514,41 +514,41 @@ export interface TaskFactory$instance {
514
514
  fromAsync(asyncResult: IAsyncResult, endMethod: Action_1<IAsyncResult>): Task;
515
515
  fromAsync(asyncResult: IAsyncResult, endMethod: Action_1<IAsyncResult>, creationOptions: TaskCreationOptions): Task;
516
516
  fromAsync(asyncResult: IAsyncResult, endMethod: Action_1<IAsyncResult>, creationOptions: TaskCreationOptions, scheduler: TaskScheduler): Task;
517
- fromAsync(beginMethod: Func_3<AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Action_1<IAsyncResult>, state: unknown | undefined): Task;
518
- fromAsync(beginMethod: Func_3<AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Action_1<IAsyncResult>, state: unknown | undefined, creationOptions: TaskCreationOptions): Task;
519
- fromAsync<TArg1>(beginMethod: Func_4<TArg1, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Action_1<IAsyncResult>, arg1: TArg1, state: unknown | undefined): Task;
520
- fromAsync<TArg1>(beginMethod: Func_4<TArg1, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Action_1<IAsyncResult>, arg1: TArg1, state: unknown | undefined, creationOptions: TaskCreationOptions): Task;
521
- fromAsync<TArg1, TArg2>(beginMethod: Func_5<TArg1, TArg2, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Action_1<IAsyncResult>, arg1: TArg1, arg2: TArg2, state: unknown | undefined): Task;
522
- fromAsync<TArg1, TArg2>(beginMethod: Func_5<TArg1, TArg2, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Action_1<IAsyncResult>, arg1: TArg1, arg2: TArg2, state: unknown | undefined, creationOptions: TaskCreationOptions): Task;
523
- fromAsync<TArg1, TArg2, TArg3>(beginMethod: Func_6<TArg1, TArg2, TArg3, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Action_1<IAsyncResult>, arg1: TArg1, arg2: TArg2, arg3: TArg3, state: unknown | undefined): Task;
524
- fromAsync<TArg1, TArg2, TArg3>(beginMethod: Func_6<TArg1, TArg2, TArg3, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Action_1<IAsyncResult>, arg1: TArg1, arg2: TArg2, arg3: TArg3, state: unknown | undefined, creationOptions: TaskCreationOptions): Task;
517
+ fromAsync(beginMethod: Func_3<AsyncCallback, unknown, IAsyncResult>, endMethod: Action_1<IAsyncResult>, state: unknown): Task;
518
+ fromAsync(beginMethod: Func_3<AsyncCallback, unknown, IAsyncResult>, endMethod: Action_1<IAsyncResult>, state: unknown, creationOptions: TaskCreationOptions): Task;
519
+ fromAsync<TArg1>(beginMethod: Func_4<TArg1, AsyncCallback, unknown, IAsyncResult>, endMethod: Action_1<IAsyncResult>, arg1: TArg1, state: unknown): Task;
520
+ fromAsync<TArg1>(beginMethod: Func_4<TArg1, AsyncCallback, unknown, IAsyncResult>, endMethod: Action_1<IAsyncResult>, arg1: TArg1, state: unknown, creationOptions: TaskCreationOptions): Task;
521
+ fromAsync<TArg1, TArg2>(beginMethod: Func_5<TArg1, TArg2, AsyncCallback, unknown, IAsyncResult>, endMethod: Action_1<IAsyncResult>, arg1: TArg1, arg2: TArg2, state: unknown): Task;
522
+ fromAsync<TArg1, TArg2>(beginMethod: Func_5<TArg1, TArg2, AsyncCallback, unknown, IAsyncResult>, endMethod: Action_1<IAsyncResult>, arg1: TArg1, arg2: TArg2, state: unknown, creationOptions: TaskCreationOptions): Task;
523
+ fromAsync<TArg1, TArg2, TArg3>(beginMethod: Func_6<TArg1, TArg2, TArg3, AsyncCallback, unknown, IAsyncResult>, endMethod: Action_1<IAsyncResult>, arg1: TArg1, arg2: TArg2, arg3: TArg3, state: unknown): Task;
524
+ fromAsync<TArg1, TArg2, TArg3>(beginMethod: Func_6<TArg1, TArg2, TArg3, AsyncCallback, unknown, IAsyncResult>, endMethod: Action_1<IAsyncResult>, arg1: TArg1, arg2: TArg2, arg3: TArg3, state: unknown, creationOptions: TaskCreationOptions): Task;
525
525
  fromAsync<TResult>(asyncResult: IAsyncResult, endMethod: Func_2<IAsyncResult, TResult>): Task_1<TResult>;
526
526
  fromAsync<TResult>(asyncResult: IAsyncResult, endMethod: Func_2<IAsyncResult, TResult>, creationOptions: TaskCreationOptions): Task_1<TResult>;
527
527
  fromAsync<TResult>(asyncResult: IAsyncResult, endMethod: Func_2<IAsyncResult, TResult>, creationOptions: TaskCreationOptions, scheduler: TaskScheduler): Task_1<TResult>;
528
- fromAsync<TResult>(beginMethod: Func_3<AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, state: unknown | undefined): Task_1<TResult>;
529
- fromAsync<TResult>(beginMethod: Func_3<AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, state: unknown | undefined, creationOptions: TaskCreationOptions): Task_1<TResult>;
530
- fromAsync<TArg1, TResult>(beginMethod: Func_4<TArg1, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, state: unknown | undefined): Task_1<TResult>;
531
- fromAsync<TArg1, TResult>(beginMethod: Func_4<TArg1, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, state: unknown | undefined, creationOptions: TaskCreationOptions): Task_1<TResult>;
532
- fromAsync<TArg1, TArg2, TResult>(beginMethod: Func_5<TArg1, TArg2, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, state: unknown | undefined): Task_1<TResult>;
533
- fromAsync<TArg1, TArg2, TResult>(beginMethod: Func_5<TArg1, TArg2, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, state: unknown | undefined, creationOptions: TaskCreationOptions): Task_1<TResult>;
534
- fromAsync<TArg1, TArg2, TArg3, TResult>(beginMethod: Func_6<TArg1, TArg2, TArg3, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, arg3: TArg3, state: unknown | undefined): Task_1<TResult>;
535
- fromAsync<TArg1, TArg2, TArg3, TResult>(beginMethod: Func_6<TArg1, TArg2, TArg3, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, arg3: TArg3, state: unknown | undefined, creationOptions: TaskCreationOptions): Task_1<TResult>;
528
+ fromAsync<TResult>(beginMethod: Func_3<AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, state: unknown): Task_1<TResult>;
529
+ fromAsync<TResult>(beginMethod: Func_3<AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, state: unknown, creationOptions: TaskCreationOptions): Task_1<TResult>;
530
+ fromAsync<TArg1, TResult>(beginMethod: Func_4<TArg1, AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, state: unknown): Task_1<TResult>;
531
+ fromAsync<TArg1, TResult>(beginMethod: Func_4<TArg1, AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, state: unknown, creationOptions: TaskCreationOptions): Task_1<TResult>;
532
+ fromAsync<TArg1, TArg2, TResult>(beginMethod: Func_5<TArg1, TArg2, AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, state: unknown): Task_1<TResult>;
533
+ fromAsync<TArg1, TArg2, TResult>(beginMethod: Func_5<TArg1, TArg2, AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, state: unknown, creationOptions: TaskCreationOptions): Task_1<TResult>;
534
+ fromAsync<TArg1, TArg2, TArg3, TResult>(beginMethod: Func_6<TArg1, TArg2, TArg3, AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, arg3: TArg3, state: unknown): Task_1<TResult>;
535
+ fromAsync<TArg1, TArg2, TArg3, TResult>(beginMethod: Func_6<TArg1, TArg2, TArg3, AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, arg3: TArg3, state: unknown, creationOptions: TaskCreationOptions): Task_1<TResult>;
536
536
  startNew(action: Action): Task;
537
537
  startNew(action: Action, cancellationToken: CancellationToken): Task;
538
538
  startNew(action: Action, creationOptions: TaskCreationOptions): Task;
539
539
  startNew(action: Action, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions, scheduler: TaskScheduler): Task;
540
- startNew(action: Action_1<unknown | undefined>, state: unknown | undefined): Task;
541
- startNew(action: Action_1<unknown | undefined>, state: unknown | undefined, cancellationToken: CancellationToken): Task;
542
- startNew(action: Action_1<unknown | undefined>, state: unknown | undefined, creationOptions: TaskCreationOptions): Task;
543
- startNew(action: Action_1<unknown | undefined>, state: unknown | undefined, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions, scheduler: TaskScheduler): Task;
540
+ startNew(action: Action_1<unknown>, state: unknown): Task;
541
+ startNew(action: Action_1<unknown>, state: unknown, cancellationToken: CancellationToken): Task;
542
+ startNew(action: Action_1<unknown>, state: unknown, creationOptions: TaskCreationOptions): Task;
543
+ startNew(action: Action_1<unknown>, state: unknown, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions, scheduler: TaskScheduler): Task;
544
544
  startNew<TResult>(function_: Func_1<TResult>): Task_1<TResult>;
545
545
  startNew<TResult>(function_: Func_1<TResult>, cancellationToken: CancellationToken): Task_1<TResult>;
546
546
  startNew<TResult>(function_: Func_1<TResult>, creationOptions: TaskCreationOptions): Task_1<TResult>;
547
547
  startNew<TResult>(function_: Func_1<TResult>, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions, scheduler: TaskScheduler): Task_1<TResult>;
548
- startNew<TResult>(function_: Func_2<unknown | undefined, TResult>, state: unknown): Task_1<TResult>;
549
- startNew<TResult>(function_: Func_2<unknown | undefined, TResult>, state: unknown, cancellationToken: CancellationToken): Task_1<TResult>;
550
- startNew<TResult>(function_: Func_2<unknown | undefined, TResult>, state: unknown, creationOptions: TaskCreationOptions): Task_1<TResult>;
551
- startNew<TResult>(function_: Func_2<unknown | undefined, TResult>, state: unknown | undefined, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions, scheduler: TaskScheduler): Task_1<TResult>;
548
+ startNew<TResult>(function_: Func_2<unknown, TResult>, state: unknown): Task_1<TResult>;
549
+ startNew<TResult>(function_: Func_2<unknown, TResult>, state: unknown, cancellationToken: CancellationToken): Task_1<TResult>;
550
+ startNew<TResult>(function_: Func_2<unknown, TResult>, state: unknown, creationOptions: TaskCreationOptions): Task_1<TResult>;
551
+ startNew<TResult>(function_: Func_2<unknown, TResult>, state: unknown, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions, scheduler: TaskScheduler): Task_1<TResult>;
552
552
  }
553
553
 
554
554
 
@@ -587,22 +587,22 @@ export interface TaskFactory_1$instance<TResult> {
587
587
  fromAsync(asyncResult: IAsyncResult, endMethod: Func_2<IAsyncResult, TResult>): Task_1<TResult>;
588
588
  fromAsync(asyncResult: IAsyncResult, endMethod: Func_2<IAsyncResult, TResult>, creationOptions: TaskCreationOptions): Task_1<TResult>;
589
589
  fromAsync(asyncResult: IAsyncResult, endMethod: Func_2<IAsyncResult, TResult>, creationOptions: TaskCreationOptions, scheduler: TaskScheduler): Task_1<TResult>;
590
- fromAsync(beginMethod: Func_3<AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, state: unknown | undefined): Task_1<TResult>;
591
- fromAsync(beginMethod: Func_3<AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, state: unknown | undefined, creationOptions: TaskCreationOptions): Task_1<TResult>;
592
- fromAsync<TArg1>(beginMethod: Func_4<TArg1, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, state: unknown | undefined): Task_1<TResult>;
593
- fromAsync<TArg1>(beginMethod: Func_4<TArg1, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, state: unknown | undefined, creationOptions: TaskCreationOptions): Task_1<TResult>;
594
- fromAsync<TArg1, TArg2>(beginMethod: Func_5<TArg1, TArg2, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, state: unknown | undefined): Task_1<TResult>;
595
- fromAsync<TArg1, TArg2>(beginMethod: Func_5<TArg1, TArg2, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, state: unknown | undefined, creationOptions: TaskCreationOptions): Task_1<TResult>;
596
- fromAsync<TArg1, TArg2, TArg3>(beginMethod: Func_6<TArg1, TArg2, TArg3, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, arg3: TArg3, state: unknown | undefined): Task_1<TResult>;
597
- fromAsync<TArg1, TArg2, TArg3>(beginMethod: Func_6<TArg1, TArg2, TArg3, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, arg3: TArg3, state: unknown | undefined, creationOptions: TaskCreationOptions): Task_1<TResult>;
590
+ fromAsync(beginMethod: Func_3<AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, state: unknown): Task_1<TResult>;
591
+ fromAsync(beginMethod: Func_3<AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, state: unknown, creationOptions: TaskCreationOptions): Task_1<TResult>;
592
+ fromAsync<TArg1>(beginMethod: Func_4<TArg1, AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, state: unknown): Task_1<TResult>;
593
+ fromAsync<TArg1>(beginMethod: Func_4<TArg1, AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, state: unknown, creationOptions: TaskCreationOptions): Task_1<TResult>;
594
+ fromAsync<TArg1, TArg2>(beginMethod: Func_5<TArg1, TArg2, AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, state: unknown): Task_1<TResult>;
595
+ fromAsync<TArg1, TArg2>(beginMethod: Func_5<TArg1, TArg2, AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, state: unknown, creationOptions: TaskCreationOptions): Task_1<TResult>;
596
+ fromAsync<TArg1, TArg2, TArg3>(beginMethod: Func_6<TArg1, TArg2, TArg3, AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, arg3: TArg3, state: unknown): Task_1<TResult>;
597
+ fromAsync<TArg1, TArg2, TArg3>(beginMethod: Func_6<TArg1, TArg2, TArg3, AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, arg3: TArg3, state: unknown, creationOptions: TaskCreationOptions): Task_1<TResult>;
598
598
  startNew(function_: Func_1<TResult>): Task_1<TResult>;
599
599
  startNew(function_: Func_1<TResult>, cancellationToken: CancellationToken): Task_1<TResult>;
600
600
  startNew(function_: Func_1<TResult>, creationOptions: TaskCreationOptions): Task_1<TResult>;
601
601
  startNew(function_: Func_1<TResult>, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions, scheduler: TaskScheduler): Task_1<TResult>;
602
- startNew(function_: Func_2<unknown | undefined, TResult>, state: unknown | undefined): Task_1<TResult>;
603
- startNew(function_: Func_2<unknown | undefined, TResult>, state: unknown | undefined, cancellationToken: CancellationToken): Task_1<TResult>;
604
- startNew(function_: Func_2<unknown | undefined, TResult>, state: unknown | undefined, creationOptions: TaskCreationOptions): Task_1<TResult>;
605
- startNew(function_: Func_2<unknown | undefined, TResult>, state: unknown | undefined, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions, scheduler: TaskScheduler): Task_1<TResult>;
602
+ startNew(function_: Func_2<unknown, TResult>, state: unknown): Task_1<TResult>;
603
+ startNew(function_: Func_2<unknown, TResult>, state: unknown, cancellationToken: CancellationToken): Task_1<TResult>;
604
+ startNew(function_: Func_2<unknown, TResult>, state: unknown, creationOptions: TaskCreationOptions): Task_1<TResult>;
605
+ startNew(function_: Func_2<unknown, TResult>, state: unknown, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions, scheduler: TaskScheduler): Task_1<TResult>;
606
606
  }
607
607
 
608
608
 
@@ -633,15 +633,15 @@ export const TaskScheduler: {
633
633
  export type TaskScheduler = TaskScheduler$instance;
634
634
 
635
635
  export interface TaskSchedulerException$instance extends Exception {
636
- getObjectData(info: SerializationInfo | undefined, context: StreamingContext): void;
636
+ getObjectData(info: SerializationInfo, context: StreamingContext): void;
637
637
  }
638
638
 
639
639
 
640
640
  export const TaskSchedulerException: {
641
641
  new(): TaskSchedulerException;
642
- new(message: string | undefined): TaskSchedulerException;
643
- new(innerException: Exception | undefined): TaskSchedulerException;
644
- new(message: string | undefined, innerException: Exception | undefined): TaskSchedulerException;
642
+ new(message: string): TaskSchedulerException;
643
+ new(innerException: Exception): TaskSchedulerException;
644
+ new(message: string, innerException: Exception): TaskSchedulerException;
645
645
  };
646
646
 
647
647
 
@@ -734,7 +734,7 @@ export abstract class TaskExtensions$instance {
734
734
  export type TaskExtensions = TaskExtensions$instance;
735
735
 
736
736
  export abstract class TaskToAsyncResult$instance {
737
- static begin(task: Task, callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
737
+ static begin(task: Task, callback: AsyncCallback, state: unknown): IAsyncResult;
738
738
  static end(asyncResult: IAsyncResult): void;
739
739
  static end<TResult>(asyncResult: IAsyncResult): TResult;
740
740
  static unwrap(asyncResult: IAsyncResult): Task;
@@ -42,7 +42,6 @@ export interface IPropagatorBlock_2$instance<TInput, TOutput> extends ITargetBlo
42
42
  fault(exception: Exception): void;
43
43
  linkTo(target: ITargetBlock_1<TOutput>, linkOptions: DataflowLinkOptions): IDisposable;
44
44
  offerMessage(messageHeader: DataflowMessageHeader, messageValue: TInput, source: ISourceBlock_1<TInput>, consumeToAccept: boolean): DataflowMessageStatus;
45
- offerMessage(messageHeader: DataflowMessageHeader, messageValue: TInput, source: ISourceBlock_1<TInput> | undefined, consumeToAccept: boolean): DataflowMessageStatus;
46
45
  releaseReservation(messageHeader: DataflowMessageHeader, target: ITargetBlock_1<TOutput>): void;
47
46
  reserveMessage(messageHeader: DataflowMessageHeader, target: ITargetBlock_1<TOutput>): boolean;
48
47
  }
@@ -59,8 +58,8 @@ export interface IReceivableSourceBlock_1$instance<TOutput> extends ISourceBlock
59
58
  linkTo(target: ITargetBlock_1<TOutput>, linkOptions: DataflowLinkOptions): IDisposable;
60
59
  releaseReservation(messageHeader: DataflowMessageHeader, target: ITargetBlock_1<TOutput>): void;
61
60
  reserveMessage(messageHeader: DataflowMessageHeader, target: ITargetBlock_1<TOutput>): boolean;
62
- tryReceive(filter: Predicate_1<TOutput> | undefined, item: TOutput): boolean;
63
- tryReceiveAll(items: IList_1<TOutput> | undefined): boolean;
61
+ tryReceive(filter: Predicate_1<TOutput>, item: TOutput): boolean;
62
+ tryReceiveAll(items: IList_1<TOutput>): boolean;
64
63
  }
65
64
 
66
65
 
@@ -85,7 +84,7 @@ export interface ITargetBlock_1$instance<TInput> extends IDataflowBlock {
85
84
  readonly completion: Task;
86
85
  complete(): void;
87
86
  fault(exception: Exception): void;
88
- offerMessage(messageHeader: DataflowMessageHeader, messageValue: TInput, source: ISourceBlock_1<TInput> | undefined, consumeToAccept: boolean): DataflowMessageStatus;
87
+ offerMessage(messageHeader: DataflowMessageHeader, messageValue: TInput, source: ISourceBlock_1<TInput>, consumeToAccept: boolean): DataflowMessageStatus;
89
88
  }
90
89
 
91
90
 
@@ -150,8 +149,8 @@ export interface BatchBlock_1$instance<T> {
150
149
  linkTo(target: ITargetBlock_1<T[]>, linkOptions: DataflowLinkOptions): IDisposable;
151
150
  toString(): string;
152
151
  triggerBatch(): void;
153
- tryReceive(filter: Predicate_1<T[]> | undefined, item: T[] | undefined): boolean;
154
- tryReceiveAll(items: IList_1<T[]> | undefined): boolean;
152
+ tryReceive(filter: Predicate_1<T[]>, item: T[]): boolean;
153
+ tryReceiveAll(items: IList_1<T[]>): boolean;
155
154
  }
156
155
 
157
156
 
@@ -180,8 +179,8 @@ export interface BatchedJoinBlock_2$instance<T1, T2> {
180
179
  complete(): void;
181
180
  linkTo(target: ITargetBlock_1<Tuple_2<IList_1<T1>, IList_1<T2>>>, linkOptions: DataflowLinkOptions): IDisposable;
182
181
  toString(): string;
183
- tryReceive(filter: Predicate_1<Tuple_2<IList_1<T1>, IList_1<T2>>> | undefined, item: Tuple_2<IList_1<T1>, IList_1<T2>> | undefined): boolean;
184
- tryReceiveAll(items: IList_1<Tuple_2<IList_1<T1>, IList_1<T2>>> | undefined): boolean;
182
+ tryReceive(filter: Predicate_1<Tuple_2<IList_1<T1>, IList_1<T2>>>, item: Tuple_2<IList_1<T1>, IList_1<T2>>): boolean;
183
+ tryReceiveAll(items: IList_1<Tuple_2<IList_1<T1>, IList_1<T2>>>): boolean;
185
184
  }
186
185
 
187
186
 
@@ -210,8 +209,8 @@ export interface BatchedJoinBlock_3$instance<T1, T2, T3> {
210
209
  complete(): void;
211
210
  linkTo(target: ITargetBlock_1<Tuple_3<IList_1<T1>, IList_1<T2>, IList_1<T3>>>, linkOptions: DataflowLinkOptions): IDisposable;
212
211
  toString(): string;
213
- tryReceive(filter: Predicate_1<Tuple_3<IList_1<T1>, IList_1<T2>, IList_1<T3>>> | undefined, item: Tuple_3<IList_1<T1>, IList_1<T2>, IList_1<T3>> | undefined): boolean;
214
- tryReceiveAll(items: IList_1<Tuple_3<IList_1<T1>, IList_1<T2>, IList_1<T3>>> | undefined): boolean;
212
+ tryReceive(filter: Predicate_1<Tuple_3<IList_1<T1>, IList_1<T2>, IList_1<T3>>>, item: Tuple_3<IList_1<T1>, IList_1<T2>, IList_1<T3>>): boolean;
213
+ tryReceiveAll(items: IList_1<Tuple_3<IList_1<T1>, IList_1<T2>, IList_1<T3>>>): boolean;
215
214
  }
216
215
 
217
216
 
@@ -235,13 +234,13 @@ export interface BroadcastBlock_1$instance<T> {
235
234
  complete(): void;
236
235
  linkTo(target: ITargetBlock_1<T>, linkOptions: DataflowLinkOptions): IDisposable;
237
236
  toString(): string;
238
- tryReceive(filter: Predicate_1<T> | undefined, item: T): boolean;
237
+ tryReceive(filter: Predicate_1<T>, item: T): boolean;
239
238
  }
240
239
 
241
240
 
242
241
  export const BroadcastBlock_1: {
243
- new<T>(cloningFunction: Func_2<T, T> | undefined): BroadcastBlock_1<T>;
244
- new<T>(cloningFunction: Func_2<T, T> | undefined, dataflowBlockOptions: DataflowBlockOptions): BroadcastBlock_1<T>;
242
+ new<T>(cloningFunction: Func_2<T, T>): BroadcastBlock_1<T>;
243
+ new<T>(cloningFunction: Func_2<T, T>, dataflowBlockOptions: DataflowBlockOptions): BroadcastBlock_1<T>;
245
244
  };
246
245
 
247
246
 
@@ -261,8 +260,8 @@ export interface BufferBlock_1$instance<T> {
261
260
  complete(): void;
262
261
  linkTo(target: ITargetBlock_1<T>, linkOptions: DataflowLinkOptions): IDisposable;
263
262
  toString(): string;
264
- tryReceive(filter: Predicate_1<T> | undefined, item: T): boolean;
265
- tryReceiveAll(items: IList_1<T> | undefined): boolean;
263
+ tryReceive(filter: Predicate_1<T>, item: T): boolean;
264
+ tryReceiveAll(items: IList_1<T>): boolean;
266
265
  }
267
266
 
268
267
 
@@ -348,8 +347,8 @@ export interface JoinBlock_2$instance<T1, T2> {
348
347
  complete(): void;
349
348
  linkTo(target: ITargetBlock_1<Tuple_2<T1, T2>>, linkOptions: DataflowLinkOptions): IDisposable;
350
349
  toString(): string;
351
- tryReceive(filter: Predicate_1<Tuple_2<T1, T2>> | undefined, item: Tuple_2<T1, T2> | undefined): boolean;
352
- tryReceiveAll(items: IList_1<Tuple_2<T1, T2>> | undefined): boolean;
350
+ tryReceive(filter: Predicate_1<Tuple_2<T1, T2>>, item: Tuple_2<T1, T2>): boolean;
351
+ tryReceiveAll(items: IList_1<Tuple_2<T1, T2>>): boolean;
353
352
  }
354
353
 
355
354
 
@@ -377,8 +376,8 @@ export interface JoinBlock_3$instance<T1, T2, T3> {
377
376
  complete(): void;
378
377
  linkTo(target: ITargetBlock_1<Tuple_3<T1, T2, T3>>, linkOptions: DataflowLinkOptions): IDisposable;
379
378
  toString(): string;
380
- tryReceive(filter: Predicate_1<Tuple_3<T1, T2, T3>> | undefined, item: Tuple_3<T1, T2, T3> | undefined): boolean;
381
- tryReceiveAll(items: IList_1<Tuple_3<T1, T2, T3>> | undefined): boolean;
379
+ tryReceive(filter: Predicate_1<Tuple_3<T1, T2, T3>>, item: Tuple_3<T1, T2, T3>): boolean;
380
+ tryReceiveAll(items: IList_1<Tuple_3<T1, T2, T3>>): boolean;
382
381
  }
383
382
 
384
383
 
@@ -404,8 +403,8 @@ export interface TransformBlock_2$instance<TInput, TOutput> {
404
403
  complete(): void;
405
404
  linkTo(target: ITargetBlock_1<TOutput>, linkOptions: DataflowLinkOptions): IDisposable;
406
405
  toString(): string;
407
- tryReceive(filter: Predicate_1<TOutput> | undefined, item: TOutput): boolean;
408
- tryReceiveAll(items: IList_1<TOutput> | undefined): boolean;
406
+ tryReceive(filter: Predicate_1<TOutput>, item: TOutput): boolean;
407
+ tryReceiveAll(items: IList_1<TOutput>): boolean;
409
408
  }
410
409
 
411
410
 
@@ -432,8 +431,8 @@ export interface TransformManyBlock_2$instance<TInput, TOutput> {
432
431
  complete(): void;
433
432
  linkTo(target: ITargetBlock_1<TOutput>, linkOptions: DataflowLinkOptions): IDisposable;
434
433
  toString(): string;
435
- tryReceive(filter: Predicate_1<TOutput> | undefined, item: TOutput): boolean;
436
- tryReceiveAll(items: IList_1<TOutput> | undefined): boolean;
434
+ tryReceive(filter: Predicate_1<TOutput>, item: TOutput): boolean;
435
+ tryReceiveAll(items: IList_1<TOutput>): boolean;
437
436
  }
438
437
 
439
438
 
@@ -458,13 +457,13 @@ export interface WriteOnceBlock_1$instance<T> {
458
457
  complete(): void;
459
458
  linkTo(target: ITargetBlock_1<T>, linkOptions: DataflowLinkOptions): IDisposable;
460
459
  toString(): string;
461
- tryReceive(filter: Predicate_1<T> | undefined, item: T): boolean;
460
+ tryReceive(filter: Predicate_1<T>, item: T): boolean;
462
461
  }
463
462
 
464
463
 
465
464
  export const WriteOnceBlock_1: {
466
- new<T>(cloningFunction: Func_2<T, T> | undefined): WriteOnceBlock_1<T>;
467
- new<T>(cloningFunction: Func_2<T, T> | undefined, dataflowBlockOptions: DataflowBlockOptions): WriteOnceBlock_1<T>;
465
+ new<T>(cloningFunction: Func_2<T, T>): WriteOnceBlock_1<T>;
466
+ new<T>(cloningFunction: Func_2<T, T>, dataflowBlockOptions: DataflowBlockOptions): WriteOnceBlock_1<T>;
468
467
  };
469
468
 
470
469
 
@@ -52,3 +52,6 @@ export type JoinBlock<
52
52
  [T3] extends [__] ? Internal.JoinBlock_2<T1, T2> :
53
53
  Internal.JoinBlock_3<T1, T2, T3>;
54
54
 
55
+ // Extension methods (C# using semantics)
56
+ export type { ExtensionMethods_System_Threading_Tasks_Dataflow as ExtensionMethods } from './__internal/extensions/index.js';
57
+
@@ -27,16 +27,16 @@ export enum ValueTaskSourceStatus {
27
27
  export interface IValueTaskSource$instance {
28
28
  getResult(token: short): void;
29
29
  getStatus(token: short): ValueTaskSourceStatus;
30
- onCompleted(continuation: Action_1<unknown | undefined>, state: unknown | undefined, token: short, flags: ValueTaskSourceOnCompletedFlags): void;
30
+ onCompleted(continuation: Action_1<unknown>, state: unknown, token: short, flags: ValueTaskSourceOnCompletedFlags): void;
31
31
  }
32
32
 
33
33
 
34
34
  export type IValueTaskSource = IValueTaskSource$instance;
35
35
 
36
36
  export interface IValueTaskSource_1$instance<TResult> {
37
- getResult(token: short): TResult | undefined;
37
+ getResult(token: short): TResult;
38
38
  getStatus(token: short): ValueTaskSourceStatus;
39
- onCompleted(continuation: Action_1<unknown | undefined>, state: unknown | undefined, token: short, flags: ValueTaskSourceOnCompletedFlags): void;
39
+ onCompleted(continuation: Action_1<unknown>, state: unknown, token: short, flags: ValueTaskSourceOnCompletedFlags): void;
40
40
  }
41
41
 
42
42
 
@@ -47,7 +47,7 @@ export interface ManualResetValueTaskSourceCore_1$instance<TResult> {
47
47
  readonly version: short;
48
48
  getResult(token: short): TResult;
49
49
  getStatus(token: short): ValueTaskSourceStatus;
50
- onCompleted(continuation: Action_1<unknown | undefined>, state: unknown, token: short, flags: ValueTaskSourceOnCompletedFlags): void;
50
+ onCompleted(continuation: Action_1<unknown>, state: unknown, token: short, flags: ValueTaskSourceOnCompletedFlags): void;
51
51
  reset(): void;
52
52
  setException(error: Exception): void;
53
53
  setResult(result: TResult): void;
@@ -63,3 +63,6 @@ export type ValueTask<
63
63
  [T1] extends [__] ? Internal.ValueTask :
64
64
  Internal.ValueTask_1<T1>;
65
65
 
66
+ // Extension methods (C# using semantics)
67
+ export type { ExtensionMethods_System_Threading_Tasks as ExtensionMethods } from './__internal/extensions/index.js';
68
+
@@ -97,3 +97,6 @@ export { EventWaitHandleAcl$instance as EventWaitHandleAcl } from './System.Thre
97
97
  export { MutexAcl$instance as MutexAcl } from './System.Threading/internal/index.js';
98
98
  export { SemaphoreAcl$instance as SemaphoreAcl } from './System.Threading/internal/index.js';
99
99
  export { ThreadingAclExtensions$instance as ThreadingAclExtensions } from './System.Threading/internal/index.js';
100
+ // Extension methods (C# using semantics)
101
+ export type { ExtensionMethods_System_Threading as ExtensionMethods } from './__internal/extensions/index.js';
102
+
@@ -14,7 +14,7 @@ import type { ISerializable, SerializationInfo, StreamingContext } from "../../S
14
14
  import * as System_Internal from "../../System/internal/index.js";
15
15
  import type { AsyncCallback, Boolean as ClrBoolean, DateTime, Delegate, Double, EventArgs, IAsyncResult, ICloneable, IDisposable, Int32, IntPtr, MulticastDelegate, Object as ClrObject, String as ClrString, TimeSpan, Type, Void } from "../../System/internal/index.js";
16
16
 
17
- export type ElapsedEventHandler = (sender: unknown | undefined, e: ElapsedEventArgs) => void;
17
+ export type ElapsedEventHandler = (sender: unknown, e: ElapsedEventArgs) => void;
18
18
 
19
19
 
20
20
  export interface ElapsedEventArgs$instance extends EventArgs {
@@ -33,8 +33,10 @@ export interface Timer$instance extends Component {
33
33
  autoReset: boolean;
34
34
  enabled: boolean;
35
35
  interval: double;
36
- site: ISite | undefined;
37
- synchronizingObject: ISynchronizeInvoke | undefined;
36
+ get site(): ISite | undefined;
37
+ set site(value: ISite);
38
+ get synchronizingObject(): ISynchronizeInvoke | undefined;
39
+ set synchronizingObject(value: ISynchronizeInvoke);
38
40
  beginInit(): void;
39
41
  close(): void;
40
42
  dispose(): void;
@@ -68,10 +68,10 @@ export enum TransactionStatus {
68
68
  export type HostCurrentTransactionCallback = () => Transaction;
69
69
 
70
70
 
71
- export type TransactionCompletedEventHandler = (sender: unknown | undefined, e: TransactionEventArgs) => void;
71
+ export type TransactionCompletedEventHandler = (sender: unknown, e: TransactionEventArgs) => void;
72
72
 
73
73
 
74
- export type TransactionStartedEventHandler = (sender: unknown | undefined, e: TransactionEventArgs) => void;
74
+ export type TransactionStartedEventHandler = (sender: unknown, e: TransactionEventArgs) => void;
75
75
 
76
76
 
77
77
  export interface IDtcTransaction$instance {
@@ -232,10 +232,10 @@ export type PreparingEnlistment = PreparingEnlistment$instance;
232
232
 
233
233
  export interface SinglePhaseEnlistment$instance extends Enlistment {
234
234
  aborted(): void;
235
- aborted(e: Exception | undefined): void;
235
+ aborted(e: Exception): void;
236
236
  committed(): void;
237
237
  inDoubt(): void;
238
- inDoubt(e: Exception | undefined): void;
238
+ inDoubt(e: Exception): void;
239
239
  }
240
240
 
241
241
 
@@ -292,7 +292,8 @@ export interface Transaction$instance {
292
292
 
293
293
  export const Transaction: {
294
294
  new(): Transaction;
295
- current: Transaction | undefined;
295
+ get current(): Transaction | undefined;
296
+ set current(value: Transaction);
296
297
  };
297
298
 
298
299
 
@@ -313,8 +314,8 @@ export interface TransactionAbortedException$instance extends TransactionExcepti
313
314
 
314
315
  export const TransactionAbortedException: {
315
316
  new(): TransactionAbortedException;
316
- new(message: string | undefined): TransactionAbortedException;
317
- new(message: string | undefined, innerException: Exception | undefined): TransactionAbortedException;
317
+ new(message: string): TransactionAbortedException;
318
+ new(message: string, innerException: Exception): TransactionAbortedException;
318
319
  };
319
320
 
320
321
 
@@ -344,8 +345,8 @@ export interface TransactionException$instance extends SystemException {
344
345
 
345
346
  export const TransactionException: {
346
347
  new(): TransactionException;
347
- new(message: string | undefined): TransactionException;
348
- new(message: string | undefined, innerException: Exception | undefined): TransactionException;
348
+ new(message: string): TransactionException;
349
+ new(message: string, innerException: Exception): TransactionException;
349
350
  };
350
351
 
351
352
 
@@ -363,8 +364,8 @@ export interface TransactionInDoubtException$instance extends TransactionExcepti
363
364
 
364
365
  export const TransactionInDoubtException: {
365
366
  new(): TransactionInDoubtException;
366
- new(message: string | undefined): TransactionInDoubtException;
367
- new(message: string | undefined, innerException: Exception | undefined): TransactionInDoubtException;
367
+ new(message: string): TransactionInDoubtException;
368
+ new(message: string, innerException: Exception): TransactionInDoubtException;
368
369
  };
369
370
 
370
371
 
@@ -397,8 +398,8 @@ export interface TransactionManagerCommunicationException$instance extends Trans
397
398
 
398
399
  export const TransactionManagerCommunicationException: {
399
400
  new(): TransactionManagerCommunicationException;
400
- new(message: string | undefined): TransactionManagerCommunicationException;
401
- new(message: string | undefined, innerException: Exception | undefined): TransactionManagerCommunicationException;
401
+ new(message: string): TransactionManagerCommunicationException;
402
+ new(message: string, innerException: Exception): TransactionManagerCommunicationException;
402
403
  };
403
404
 
404
405
 
@@ -416,8 +417,8 @@ export interface TransactionPromotionException$instance extends TransactionExcep
416
417
 
417
418
  export const TransactionPromotionException: {
418
419
  new(): TransactionPromotionException;
419
- new(message: string | undefined): TransactionPromotionException;
420
- new(message: string | undefined, innerException: Exception | undefined): TransactionPromotionException;
420
+ new(message: string): TransactionPromotionException;
421
+ new(message: string, innerException: Exception): TransactionPromotionException;
421
422
  };
422
423
 
423
424
 
@@ -476,7 +477,8 @@ export abstract class TransactionInterop$instance {
476
477
  export type TransactionInterop = TransactionInterop$instance;
477
478
 
478
479
  export abstract class TransactionManager$instance {
479
- static hostCurrentCallback: HostCurrentTransactionCallback | undefined;
480
+ static get hostCurrentCallback(): HostCurrentTransactionCallback | undefined;
481
+ static set hostCurrentCallback(value: HostCurrentTransactionCallback);
480
482
  static defaultTimeout: TimeSpan;
481
483
  static maximumTimeout: TimeSpan;
482
484
  static implicitDistributedTransactions: boolean;