@tsonic/dotnet 0.8.2 → 0.8.3

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 (119) 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.CodeDom.Compiler/internal/index.d.ts +10 -10
  8. package/System.Collections/internal/index.d.ts +30 -24
  9. package/System.Collections.Concurrent/internal/index.d.ts +10 -10
  10. package/System.Collections.Frozen/bindings.json +20 -20
  11. package/System.Collections.Frozen/internal/index.d.ts +6 -6
  12. package/System.Collections.Frozen/internal/metadata.json +10 -10
  13. package/System.Collections.Generic/bindings.json +20 -44
  14. package/System.Collections.Generic/internal/index.d.ts +54 -54
  15. package/System.Collections.Generic/internal/metadata.json +10 -26
  16. package/System.Collections.Immutable/internal/index.d.ts +88 -88
  17. package/System.Collections.ObjectModel/internal/index.d.ts +15 -15
  18. package/System.Collections.Specialized/internal/index.d.ts +53 -49
  19. package/System.ComponentModel/internal/index.d.ts +388 -376
  20. package/System.ComponentModel.DataAnnotations/internal/index.d.ts +55 -45
  21. package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +3 -2
  22. package/System.ComponentModel.Design/internal/index.d.ts +36 -36
  23. package/System.ComponentModel.Design.Serialization/internal/index.d.ts +20 -20
  24. package/System.Data/internal/index.d.ts +171 -163
  25. package/System.Data.Common/internal/index.d.ts +36 -28
  26. package/System.Data.SqlTypes/internal/index.d.ts +23 -23
  27. package/System.Diagnostics/internal/index.d.ts +250 -228
  28. package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +37 -23
  29. package/System.Diagnostics.Contracts/internal/index.d.ts +4 -4
  30. package/System.Diagnostics.Metrics/internal/index.d.ts +34 -29
  31. package/System.Diagnostics.SymbolStore/internal/index.d.ts +4 -4
  32. package/System.Diagnostics.Tracing/internal/index.d.ts +26 -24
  33. package/System.Drawing/internal/index.d.ts +76 -76
  34. package/System.Dynamic/internal/index.d.ts +26 -26
  35. package/System.Formats.Asn1/internal/index.d.ts +4 -4
  36. package/System.Formats.Tar/internal/index.d.ts +5 -4
  37. package/System.Globalization/internal/index.d.ts +22 -20
  38. package/System.IO/internal/index.d.ts +106 -103
  39. package/System.IO.Compression/internal/index.d.ts +24 -24
  40. package/System.IO.Enumeration/internal/index.d.ts +7 -5
  41. package/System.IO.IsolatedStorage/internal/index.d.ts +9 -9
  42. package/System.IO.MemoryMappedFiles/internal/index.d.ts +8 -8
  43. package/System.IO.Pipelines/internal/index.d.ts +5 -5
  44. package/System.IO.Pipes/internal/index.d.ts +4 -4
  45. package/System.Linq/internal/index.d.ts +207 -207
  46. package/System.Linq.Expressions/internal/index.d.ts +160 -160
  47. package/System.Net/internal/index.d.ts +157 -131
  48. package/System.Net.Cache/internal/index.d.ts +2 -2
  49. package/System.Net.Http/internal/index.d.ts +69 -53
  50. package/System.Net.Http.Headers/internal/index.d.ts +62 -45
  51. package/System.Net.Http.Json/internal/index.d.ts +38 -38
  52. package/System.Net.Http.Metrics/internal/index.d.ts +1 -1
  53. package/System.Net.Mail/internal/index.d.ts +80 -70
  54. package/System.Net.Mime/internal/index.d.ts +4 -2
  55. package/System.Net.NetworkInformation/internal/index.d.ts +23 -23
  56. package/System.Net.Quic/internal/index.d.ts +4 -3
  57. package/System.Net.Security/internal/index.d.ts +65 -49
  58. package/System.Net.ServerSentEvents/internal/index.d.ts +3 -2
  59. package/System.Net.Sockets/internal/index.d.ts +49 -42
  60. package/System.Net.WebSockets/internal/index.d.ts +35 -29
  61. package/System.Numerics/bindings.json +96 -72
  62. package/System.Numerics/internal/index.d.ts +93 -91
  63. package/System.Numerics/internal/metadata.json +64 -48
  64. package/System.Reflection/internal/index.d.ts +129 -126
  65. package/System.Reflection.Emit/internal/index.d.ts +105 -105
  66. package/System.Reflection.Metadata/internal/index.d.ts +15 -15
  67. package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +4 -4
  68. package/System.Reflection.PortableExecutable/internal/index.d.ts +2 -2
  69. package/System.Resources/internal/index.d.ts +20 -19
  70. package/System.Runtime/internal/index.d.ts +6 -5
  71. package/System.Runtime.CompilerServices/internal/index.d.ts +30 -28
  72. package/System.Runtime.InteropServices/internal/index.d.ts +85 -83
  73. package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +9 -9
  74. package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +20 -20
  75. package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +28 -26
  76. package/System.Runtime.Loader/internal/index.d.ts +2 -2
  77. package/System.Runtime.Remoting/internal/index.d.ts +1 -1
  78. package/System.Runtime.Serialization/internal/index.d.ts +66 -54
  79. package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +3 -3
  80. package/System.Runtime.Serialization.Formatters/internal/index.d.ts +4 -2
  81. package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +5 -4
  82. package/System.Runtime.Serialization.Json/internal/index.d.ts +22 -21
  83. package/System.Runtime.Versioning/internal/index.d.ts +12 -9
  84. package/System.Security/internal/index.d.ts +62 -52
  85. package/System.Security.AccessControl/internal/index.d.ts +29 -25
  86. package/System.Security.Authentication/internal/index.d.ts +4 -4
  87. package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +8 -8
  88. package/System.Security.Claims/internal/index.d.ts +21 -15
  89. package/System.Security.Cryptography/internal/index.d.ts +155 -141
  90. package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +83 -82
  91. package/System.Security.Permissions/internal/index.d.ts +2 -2
  92. package/System.Security.Principal/internal/index.d.ts +3 -3
  93. package/System.Text/internal/index.d.ts +48 -46
  94. package/System.Text.Json/internal/index.d.ts +87 -81
  95. package/System.Text.Json.Nodes/internal/index.d.ts +41 -41
  96. package/System.Text.Json.Schema/internal/index.d.ts +4 -3
  97. package/System.Text.Json.Serialization/internal/index.d.ts +5 -4
  98. package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +55 -30
  99. package/System.Text.RegularExpressions/internal/index.d.ts +5 -5
  100. package/System.Text.Unicode/internal/index.d.ts +4 -4
  101. package/System.Threading/internal/index.d.ts +86 -85
  102. package/System.Threading.Channels/internal/index.d.ts +8 -8
  103. package/System.Threading.Tasks/internal/index.d.ts +82 -82
  104. package/System.Threading.Tasks.Dataflow/internal/index.d.ts +25 -26
  105. package/System.Threading.Tasks.Sources/internal/index.d.ts +4 -4
  106. package/System.Timers/internal/index.d.ts +5 -3
  107. package/System.Transactions/internal/index.d.ts +18 -16
  108. package/System.Web/internal/index.d.ts +30 -30
  109. package/System.Windows.Input/internal/index.d.ts +2 -2
  110. package/System.Xml/internal/index.d.ts +162 -161
  111. package/System.Xml.Linq/internal/index.d.ts +38 -37
  112. package/System.Xml.Resolvers/internal/index.d.ts +5 -5
  113. package/System.Xml.Schema/internal/index.d.ts +133 -88
  114. package/System.Xml.Serialization/internal/index.d.ts +138 -117
  115. package/System.Xml.XPath/internal/index.d.ts +12 -12
  116. package/System.Xml.Xsl/internal/index.d.ts +34 -34
  117. package/System.Xml.Xsl.Runtime/internal/index.d.ts +16 -16
  118. package/__internal/extensions/index.d.ts +371 -371
  119. package/package.json +1 -1
@@ -165,16 +165,16 @@ export interface CancellationToken$instance {
165
165
  readonly isCancellationRequested: boolean;
166
166
  readonly waitHandle: WaitHandle;
167
167
  equals(other: CancellationToken): boolean;
168
- equals(other: unknown | undefined): boolean;
168
+ equals(other: unknown): boolean;
169
169
  getHashCode(): int;
170
- register(callback: Action | undefined): CancellationTokenRegistration;
171
- register(callback: Action | undefined, useSynchronizationContext: boolean): CancellationTokenRegistration;
172
- register(callback: Action_1<unknown | undefined>, state: unknown | undefined): CancellationTokenRegistration;
173
- register(callback: Action_2<unknown | undefined, CancellationToken>, state: unknown | undefined): CancellationTokenRegistration;
174
- register(callback: Action_1<unknown | undefined>, state: unknown | undefined, useSynchronizationContext: boolean): CancellationTokenRegistration;
170
+ register(callback: Action): CancellationTokenRegistration;
171
+ register(callback: Action, useSynchronizationContext: boolean): CancellationTokenRegistration;
172
+ register(callback: Action_1<unknown>, state: unknown): CancellationTokenRegistration;
173
+ register(callback: Action_2<unknown, CancellationToken>, state: unknown): CancellationTokenRegistration;
174
+ register(callback: Action_1<unknown>, state: unknown, useSynchronizationContext: boolean): CancellationTokenRegistration;
175
175
  throwIfCancellationRequested(): void;
176
- unsafeRegister(callback: Action_1<unknown | undefined>, state: unknown | undefined): CancellationTokenRegistration;
177
- unsafeRegister(callback: Action_2<unknown | undefined, CancellationToken>, state: unknown | undefined): CancellationTokenRegistration;
176
+ unsafeRegister(callback: Action_1<unknown>, state: unknown): CancellationTokenRegistration;
177
+ unsafeRegister(callback: Action_2<unknown, CancellationToken>, state: unknown): CancellationTokenRegistration;
178
178
  }
179
179
 
180
180
 
@@ -335,11 +335,11 @@ export interface AbandonedMutexException$instance extends SystemException {
335
335
 
336
336
  export const AbandonedMutexException: {
337
337
  new(): AbandonedMutexException;
338
- new(message: string | undefined): AbandonedMutexException;
339
- new(message: string | undefined, inner: Exception | undefined): AbandonedMutexException;
340
- new(location: int, handle: WaitHandle | undefined): AbandonedMutexException;
341
- new(message: string | undefined, location: int, handle: WaitHandle | undefined): AbandonedMutexException;
342
- new(message: string | undefined, inner: Exception | undefined, location: int, handle: WaitHandle | undefined): AbandonedMutexException;
338
+ new(message: string): AbandonedMutexException;
339
+ new(message: string, inner: Exception): AbandonedMutexException;
340
+ new(location: int, handle: WaitHandle): AbandonedMutexException;
341
+ new(message: string, location: int, handle: WaitHandle): AbandonedMutexException;
342
+ new(message: string, inner: Exception, location: int, handle: WaitHandle): AbandonedMutexException;
343
343
  };
344
344
 
345
345
 
@@ -357,7 +357,7 @@ export interface AsyncLocal_1$instance<T> {
357
357
 
358
358
  export const AsyncLocal_1: {
359
359
  new<T>(): AsyncLocal_1<T>;
360
- new<T>(valueChangedHandler: Action_1<AsyncLocalValueChangedArgs_1<T>> | undefined): AsyncLocal_1<T>;
360
+ new<T>(valueChangedHandler: Action_1<AsyncLocalValueChangedArgs_1<T>>): AsyncLocal_1<T>;
361
361
  };
362
362
 
363
363
 
@@ -400,7 +400,7 @@ export interface Barrier$instance {
400
400
 
401
401
  export const Barrier: {
402
402
  new(participantCount: int): Barrier;
403
- new(participantCount: int, postPhaseAction: Action_1<Barrier> | undefined): Barrier;
403
+ new(participantCount: int, postPhaseAction: Action_1<Barrier>): Barrier;
404
404
  };
405
405
 
406
406
 
@@ -414,15 +414,15 @@ export type Barrier = Barrier$instance & __Barrier$views;
414
414
 
415
415
 
416
416
  export interface BarrierPostPhaseException$instance extends Exception {
417
- getObjectData(info: SerializationInfo | undefined, context: StreamingContext): void;
417
+ getObjectData(info: SerializationInfo, context: StreamingContext): void;
418
418
  }
419
419
 
420
420
 
421
421
  export const BarrierPostPhaseException: {
422
422
  new(): BarrierPostPhaseException;
423
- new(innerException: Exception | undefined): BarrierPostPhaseException;
424
- new(message: string | undefined): BarrierPostPhaseException;
425
- new(message: string | undefined, innerException: Exception | undefined): BarrierPostPhaseException;
423
+ new(innerException: Exception): BarrierPostPhaseException;
424
+ new(message: string): BarrierPostPhaseException;
425
+ new(message: string, innerException: Exception): BarrierPostPhaseException;
426
426
  };
427
427
 
428
428
 
@@ -477,7 +477,7 @@ export const CompressedStack: {
477
477
  new(): CompressedStack;
478
478
  capture(): CompressedStack;
479
479
  getCompressedStack(): CompressedStack;
480
- run(compressedStack: CompressedStack, callback: ContextCallback, state: unknown | undefined): void;
480
+ run(compressedStack: CompressedStack, callback: ContextCallback, state: unknown): void;
481
481
  };
482
482
 
483
483
 
@@ -542,8 +542,8 @@ export const EventWaitHandle: {
542
542
  new(initialState: boolean, mode: EventResetMode, name: string, createdNew: boolean): EventWaitHandle;
543
543
  openExisting(name: string, options: NamedWaitHandleOptions): EventWaitHandle;
544
544
  openExisting(name: string): EventWaitHandle;
545
- tryOpenExisting(name: string, result: EventWaitHandle | undefined): boolean;
546
- tryOpenExisting(name: string, options: NamedWaitHandleOptions, result: EventWaitHandle | undefined): boolean;
545
+ tryOpenExisting(name: string, result: EventWaitHandle): boolean;
546
+ tryOpenExisting(name: string, options: NamedWaitHandleOptions, result: EventWaitHandle): boolean;
547
547
  };
548
548
 
549
549
 
@@ -563,11 +563,11 @@ export interface ExecutionContext$instance {
563
563
 
564
564
  export const ExecutionContext: {
565
565
  new(): ExecutionContext;
566
- capture(): ExecutionContext;
566
+ capture(): ExecutionContext | undefined;
567
567
  isFlowSuppressed(): boolean;
568
568
  restore(executionContext: ExecutionContext): void;
569
569
  restoreFlow(): void;
570
- run(executionContext: ExecutionContext, callback: ContextCallback, state: unknown | undefined): void;
570
+ run(executionContext: ExecutionContext, callback: ContextCallback, state: unknown): void;
571
571
  suppressFlow(): AsyncFlowControl;
572
572
  };
573
573
 
@@ -591,7 +591,7 @@ export interface HostExecutionContext$instance {
591
591
 
592
592
  export const HostExecutionContext: {
593
593
  new(): HostExecutionContext;
594
- new(state: unknown | undefined): HostExecutionContext;
594
+ new(state: unknown): HostExecutionContext;
595
595
  };
596
596
 
597
597
 
@@ -603,7 +603,7 @@ export type HostExecutionContext = HostExecutionContext$instance & __HostExecuti
603
603
 
604
604
 
605
605
  export interface HostExecutionContextManager$instance {
606
- capture(): HostExecutionContext;
606
+ capture(): HostExecutionContext | undefined;
607
607
  revert(previousState: unknown): void;
608
608
  setHostExecutionContext(hostExecutionContext: HostExecutionContext): unknown;
609
609
  }
@@ -635,14 +635,14 @@ export const Lock: {
635
635
  export type Lock = Lock$instance;
636
636
 
637
637
  export interface LockRecursionException$instance extends Exception {
638
- getObjectData(info: SerializationInfo | undefined, context: StreamingContext): void;
638
+ getObjectData(info: SerializationInfo, context: StreamingContext): void;
639
639
  }
640
640
 
641
641
 
642
642
  export const LockRecursionException: {
643
643
  new(): LockRecursionException;
644
- new(message: string | undefined): LockRecursionException;
645
- new(message: string | undefined, innerException: Exception | undefined): LockRecursionException;
644
+ new(message: string): LockRecursionException;
645
+ new(message: string, innerException: Exception): LockRecursionException;
646
646
  };
647
647
 
648
648
 
@@ -709,17 +709,17 @@ export interface Mutex$instance extends WaitHandle$instance {
709
709
 
710
710
 
711
711
  export const Mutex: {
712
- new(initiallyOwned: boolean, name: string | undefined, options: NamedWaitHandleOptions, createdNew: boolean): Mutex;
713
- new(initiallyOwned: boolean, name: string | undefined, createdNew: boolean): Mutex;
714
- new(initiallyOwned: boolean, name: string | undefined, options: NamedWaitHandleOptions): Mutex;
715
- new(initiallyOwned: boolean, name: string | undefined): Mutex;
716
- new(name: string | undefined, options: NamedWaitHandleOptions): Mutex;
712
+ new(initiallyOwned: boolean, name: string, options: NamedWaitHandleOptions, createdNew: boolean): Mutex;
713
+ new(initiallyOwned: boolean, name: string, createdNew: boolean): Mutex;
714
+ new(initiallyOwned: boolean, name: string, options: NamedWaitHandleOptions): Mutex;
715
+ new(initiallyOwned: boolean, name: string): Mutex;
716
+ new(name: string, options: NamedWaitHandleOptions): Mutex;
717
717
  new(initiallyOwned: boolean): Mutex;
718
718
  new(): Mutex;
719
- openExisting(name: string | undefined, options: NamedWaitHandleOptions): Mutex | undefined;
720
- openExisting(name: string | undefined): Mutex | undefined;
721
- tryOpenExisting(name: string | undefined, result: Mutex | undefined): boolean;
722
- tryOpenExisting(name: string | undefined, options: NamedWaitHandleOptions, result: Mutex | undefined): boolean;
719
+ openExisting(name: string, options: NamedWaitHandleOptions): Mutex;
720
+ openExisting(name: string): Mutex;
721
+ tryOpenExisting(name: string, result: Mutex): boolean;
722
+ tryOpenExisting(name: string, options: NamedWaitHandleOptions, result: Mutex): boolean;
723
723
  };
724
724
 
725
725
 
@@ -736,9 +736,9 @@ export interface Overlapped$instance {
736
736
  eventHandleIntPtr: nint;
737
737
  offsetHigh: int;
738
738
  offsetLow: int;
739
- pack(iocb: IOCompletionCallback | undefined): ptr<NativeOverlapped>;
739
+ pack(iocb: IOCompletionCallback): ptr<NativeOverlapped>;
740
740
  pack(iocb: IOCompletionCallback, userData: unknown): ptr<NativeOverlapped>;
741
- unsafePack(iocb: IOCompletionCallback | undefined): ptr<NativeOverlapped>;
741
+ unsafePack(iocb: IOCompletionCallback): ptr<NativeOverlapped>;
742
742
  unsafePack(iocb: IOCompletionCallback, userData: unknown): ptr<NativeOverlapped>;
743
743
  }
744
744
 
@@ -783,7 +783,7 @@ export interface PreAllocatedOverlapped$instance {
783
783
 
784
784
  export const PreAllocatedOverlapped: {
785
785
  new(callback: IOCompletionCallback, state: unknown, pinData: unknown): PreAllocatedOverlapped;
786
- unsafeCreate(callback: IOCompletionCallback, state: unknown | undefined, pinData: unknown | undefined): PreAllocatedOverlapped;
786
+ unsafeCreate(callback: IOCompletionCallback, state: unknown, pinData: unknown): PreAllocatedOverlapped;
787
787
  };
788
788
 
789
789
 
@@ -866,7 +866,7 @@ export type ReaderWriterLockSlim = ReaderWriterLockSlim$instance & __ReaderWrite
866
866
 
867
867
 
868
868
  export interface RegisteredWaitHandle$instance extends MarshalByRefObject {
869
- unregister(waitObject: WaitHandle | undefined): boolean;
869
+ unregister(waitObject: WaitHandle): boolean;
870
870
  }
871
871
 
872
872
 
@@ -892,8 +892,8 @@ export const Semaphore: {
892
892
  new(initialCount: int, maximumCount: int, name: string, createdNew: boolean): Semaphore;
893
893
  openExisting(name: string, options: NamedWaitHandleOptions): Semaphore;
894
894
  openExisting(name: string): Semaphore;
895
- tryOpenExisting(name: string, options: NamedWaitHandleOptions, result: Semaphore | undefined): boolean;
896
- tryOpenExisting(name: string, result: Semaphore | undefined): boolean;
895
+ tryOpenExisting(name: string, options: NamedWaitHandleOptions, result: Semaphore): boolean;
896
+ tryOpenExisting(name: string, result: Semaphore): boolean;
897
897
  };
898
898
 
899
899
 
@@ -911,8 +911,8 @@ export interface SemaphoreFullException$instance extends SystemException {
911
911
 
912
912
  export const SemaphoreFullException: {
913
913
  new(): SemaphoreFullException;
914
- new(message: string | undefined): SemaphoreFullException;
915
- new(message: string | undefined, innerException: Exception | undefined): SemaphoreFullException;
914
+ new(message: string): SemaphoreFullException;
915
+ new(message: string, innerException: Exception): SemaphoreFullException;
916
916
  };
917
917
 
918
918
 
@@ -964,8 +964,8 @@ export interface SynchronizationContext$instance {
964
964
  isWaitNotificationRequired(): boolean;
965
965
  operationCompleted(): void;
966
966
  operationStarted(): void;
967
- post(d: SendOrPostCallback, state: unknown | undefined): void;
968
- send(d: SendOrPostCallback, state: unknown | undefined): void;
967
+ post(d: SendOrPostCallback, state: unknown): void;
968
+ send(d: SendOrPostCallback, state: unknown): void;
969
969
  wait(waitHandles: nint[], waitAll: boolean, millisecondsTimeout: int): int;
970
970
  }
971
971
 
@@ -986,8 +986,8 @@ export interface SynchronizationLockException$instance extends SystemException {
986
986
 
987
987
  export const SynchronizationLockException: {
988
988
  new(): SynchronizationLockException;
989
- new(message: string | undefined): SynchronizationLockException;
990
- new(message: string | undefined, innerException: Exception | undefined): SynchronizationLockException;
989
+ new(message: string): SynchronizationLockException;
990
+ new(message: string, innerException: Exception): SynchronizationLockException;
991
991
  };
992
992
 
993
993
 
@@ -1037,7 +1037,8 @@ export const Thread: {
1037
1037
  new(start: ThreadStart, maxStackSize: int): Thread;
1038
1038
  new(start: ParameterizedThreadStart): Thread;
1039
1039
  new(start: ParameterizedThreadStart, maxStackSize: int): Thread;
1040
- currentPrincipal: IPrincipal | undefined;
1040
+ get currentPrincipal(): IPrincipal | undefined;
1041
+ set currentPrincipal(value: IPrincipal);
1041
1042
  readonly currentThread: Thread;
1042
1043
  allocateDataSlot(): LocalDataStoreSlot;
1043
1044
  allocateNamedDataSlot(name: string): LocalDataStoreSlot;
@@ -1053,7 +1054,7 @@ export const Thread: {
1053
1054
  getNamedDataSlot(name: string): LocalDataStoreSlot;
1054
1055
  memoryBarrier(): void;
1055
1056
  resetAbort(): void;
1056
- setData(slot: LocalDataStoreSlot, data: unknown | undefined): void;
1057
+ setData(slot: LocalDataStoreSlot, data: unknown): void;
1057
1058
  sleep(millisecondsTimeout: int): void;
1058
1059
  sleep(timeout: TimeSpan): void;
1059
1060
  spinWait(iterations: int): void;
@@ -1063,7 +1064,7 @@ export const Thread: {
1063
1064
  volatileRead(address: int): int;
1064
1065
  volatileRead(address: long): long;
1065
1066
  volatileRead(address: nint): nint;
1066
- volatileRead(address: unknown): unknown;
1067
+ volatileRead(address: unknown): unknown | undefined;
1067
1068
  volatileRead(address: sbyte): sbyte;
1068
1069
  volatileRead(address: float): float;
1069
1070
  volatileRead(address: ushort): ushort;
@@ -1126,8 +1127,8 @@ export interface ThreadInterruptedException$instance extends SystemException {
1126
1127
 
1127
1128
  export const ThreadInterruptedException: {
1128
1129
  new(): ThreadInterruptedException;
1129
- new(message: string | undefined): ThreadInterruptedException;
1130
- new(message: string | undefined, innerException: Exception | undefined): ThreadInterruptedException;
1130
+ new(message: string): ThreadInterruptedException;
1131
+ new(message: string, innerException: Exception): ThreadInterruptedException;
1131
1132
  };
1132
1133
 
1133
1134
 
@@ -1143,7 +1144,7 @@ export interface ThreadLocal_1$instance<T> {
1143
1144
  value: T;
1144
1145
  readonly values: IList_1<T>;
1145
1146
  dispose(): void;
1146
- toString(): string;
1147
+ toString(): string | undefined;
1147
1148
  }
1148
1149
 
1149
1150
 
@@ -1214,8 +1215,8 @@ export interface ThreadStateException$instance extends SystemException {
1214
1215
 
1215
1216
  export const ThreadStateException: {
1216
1217
  new(): ThreadStateException;
1217
- new(message: string | undefined): ThreadStateException;
1218
- new(message: string | undefined, innerException: Exception | undefined): ThreadStateException;
1218
+ new(message: string): ThreadStateException;
1219
+ new(message: string, innerException: Exception): ThreadStateException;
1219
1220
  };
1220
1221
 
1221
1222
 
@@ -1238,10 +1239,10 @@ export interface Timer$instance extends MarshalByRefObject {
1238
1239
 
1239
1240
 
1240
1241
  export const Timer: {
1241
- new(callback: TimerCallback, state: unknown | undefined, dueTime: int, period: int): Timer;
1242
- new(callback: TimerCallback, state: unknown | undefined, dueTime: TimeSpan, period: TimeSpan): Timer;
1243
- new(callback: TimerCallback, state: unknown | undefined, dueTime: uint, period: uint): Timer;
1244
- new(callback: TimerCallback, state: unknown | undefined, dueTime: long, period: long): Timer;
1242
+ new(callback: TimerCallback, state: unknown, dueTime: int, period: int): Timer;
1243
+ new(callback: TimerCallback, state: unknown, dueTime: TimeSpan, period: TimeSpan): Timer;
1244
+ new(callback: TimerCallback, state: unknown, dueTime: uint, period: uint): Timer;
1245
+ new(callback: TimerCallback, state: unknown, dueTime: long, period: long): Timer;
1245
1246
  new(callback: TimerCallback): Timer;
1246
1247
  readonly activeCount: long;
1247
1248
  };
@@ -1303,8 +1304,8 @@ export interface WaitHandleCannotBeOpenedException$instance extends ApplicationE
1303
1304
 
1304
1305
  export const WaitHandleCannotBeOpenedException: {
1305
1306
  new(): WaitHandleCannotBeOpenedException;
1306
- new(message: string | undefined): WaitHandleCannotBeOpenedException;
1307
- new(message: string | undefined, innerException: Exception | undefined): WaitHandleCannotBeOpenedException;
1307
+ new(message: string): WaitHandleCannotBeOpenedException;
1308
+ new(message: string, innerException: Exception): WaitHandleCannotBeOpenedException;
1308
1309
  };
1309
1310
 
1310
1311
 
@@ -1318,7 +1319,7 @@ export type WaitHandleCannotBeOpenedException = WaitHandleCannotBeOpenedExceptio
1318
1319
  export abstract class EventWaitHandleAcl$instance {
1319
1320
  static create(initialState: boolean, mode: EventResetMode, name: string, createdNew: boolean, eventSecurity: EventWaitHandleSecurity): EventWaitHandle;
1320
1321
  static openExisting(name: string, rights: EventWaitHandleRights): EventWaitHandle;
1321
- static tryOpenExisting(name: string, rights: EventWaitHandleRights, result: EventWaitHandle | undefined): boolean;
1322
+ static tryOpenExisting(name: string, rights: EventWaitHandleRights, result: EventWaitHandle): boolean;
1322
1323
  }
1323
1324
 
1324
1325
 
@@ -1339,7 +1340,7 @@ export abstract class Interlocked$instance {
1339
1340
  static compareExchange(location1: int, value: int, comparand: int): int;
1340
1341
  static compareExchange(location1: long, value: long, comparand: long): long;
1341
1342
  static compareExchange(location1: nint, value: nint, comparand: nint): nint;
1342
- static compareExchange(location1: unknown, value: unknown, comparand: unknown): unknown;
1343
+ static compareExchange(location1: unknown, value: unknown, comparand: unknown): unknown | undefined;
1343
1344
  static compareExchange(location1: sbyte, value: sbyte, comparand: sbyte): sbyte;
1344
1345
  static compareExchange(location1: float, value: float, comparand: float): float;
1345
1346
  static compareExchange(location1: ushort, value: ushort, comparand: ushort): ushort;
@@ -1357,7 +1358,7 @@ export abstract class Interlocked$instance {
1357
1358
  static exchange(location1: int, value: int): int;
1358
1359
  static exchange(location1: long, value: long): long;
1359
1360
  static exchange(location1: nint, value: nint): nint;
1360
- static exchange(location1: unknown, value: unknown): unknown;
1361
+ static exchange(location1: unknown, value: unknown): unknown | undefined;
1361
1362
  static exchange(location1: sbyte, value: sbyte): sbyte;
1362
1363
  static exchange(location1: float, value: float): float;
1363
1364
  static exchange(location1: ushort, value: ushort): ushort;
@@ -1383,11 +1384,11 @@ export abstract class Interlocked$instance {
1383
1384
  export type Interlocked = Interlocked$instance;
1384
1385
 
1385
1386
  export abstract class LazyInitializer$instance {
1386
- static ensureInitialized<T>(target: T | undefined, valueFactory: Func_1<T>): T;
1387
- static ensureInitialized<T>(target: T, initialized: boolean, syncLock: unknown | undefined, valueFactory: Func_1<T>): T;
1388
- static ensureInitialized<T>(target: T, initialized: boolean, syncLock: unknown | undefined): T;
1389
- static ensureInitialized<T>(target: T | undefined, syncLock: unknown | undefined, valueFactory: Func_1<T>): T;
1390
- static ensureInitialized<T>(target: T | undefined): T;
1387
+ static ensureInitialized<T>(target: T, valueFactory: Func_1<T>): T;
1388
+ static ensureInitialized<T>(target: T, initialized: boolean, syncLock: unknown, valueFactory: Func_1<T>): T;
1389
+ static ensureInitialized<T>(target: T, initialized: boolean, syncLock: unknown): T;
1390
+ static ensureInitialized<T>(target: T, syncLock: unknown, valueFactory: Func_1<T>): T;
1391
+ static ensureInitialized<T>(target: T): T;
1391
1392
  }
1392
1393
 
1393
1394
 
@@ -1420,7 +1421,7 @@ export type Monitor = Monitor$instance;
1420
1421
  export abstract class MutexAcl$instance {
1421
1422
  static create(initiallyOwned: boolean, name: string, createdNew: boolean, mutexSecurity: MutexSecurity): Mutex;
1422
1423
  static openExisting(name: string, rights: MutexRights): Mutex;
1423
- static tryOpenExisting(name: string, rights: MutexRights, result: Mutex | undefined): boolean;
1424
+ static tryOpenExisting(name: string, rights: MutexRights, result: Mutex): boolean;
1424
1425
  }
1425
1426
 
1426
1427
 
@@ -1429,7 +1430,7 @@ export type MutexAcl = MutexAcl$instance;
1429
1430
  export abstract class SemaphoreAcl$instance {
1430
1431
  static create(initialCount: int, maximumCount: int, name: string, createdNew: boolean, semaphoreSecurity: SemaphoreSecurity): Semaphore;
1431
1432
  static openExisting(name: string, rights: SemaphoreRights): Semaphore;
1432
- static tryOpenExisting(name: string, rights: SemaphoreRights, result: Semaphore | undefined): boolean;
1433
+ static tryOpenExisting(name: string, rights: SemaphoreRights, result: Semaphore): boolean;
1433
1434
  }
1434
1435
 
1435
1436
 
@@ -1457,22 +1458,22 @@ export abstract class ThreadPool$instance {
1457
1458
  static getMaxThreads(workerThreads: int, completionPortThreads: int): void;
1458
1459
  static getMinThreads(workerThreads: int, completionPortThreads: int): void;
1459
1460
  static queueUserWorkItem<TState>(callBack: Action_1<TState>, state: TState, preferLocal: boolean): boolean;
1460
- static queueUserWorkItem(callBack: WaitCallback, state: unknown | undefined): boolean;
1461
+ static queueUserWorkItem(callBack: WaitCallback, state: unknown): boolean;
1461
1462
  static queueUserWorkItem(callBack: WaitCallback): boolean;
1462
- static registerWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | undefined, millisecondsTimeOutInterval: int, executeOnlyOnce: boolean): RegisteredWaitHandle;
1463
- static registerWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | undefined, millisecondsTimeOutInterval: long, executeOnlyOnce: boolean): RegisteredWaitHandle;
1464
- static registerWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | undefined, timeout: TimeSpan, executeOnlyOnce: boolean): RegisteredWaitHandle;
1465
- static registerWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | undefined, millisecondsTimeOutInterval: uint, executeOnlyOnce: boolean): RegisteredWaitHandle;
1463
+ static registerWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, millisecondsTimeOutInterval: int, executeOnlyOnce: boolean): RegisteredWaitHandle;
1464
+ static registerWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, millisecondsTimeOutInterval: long, executeOnlyOnce: boolean): RegisteredWaitHandle;
1465
+ static registerWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, timeout: TimeSpan, executeOnlyOnce: boolean): RegisteredWaitHandle;
1466
+ static registerWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, millisecondsTimeOutInterval: uint, executeOnlyOnce: boolean): RegisteredWaitHandle;
1466
1467
  static setMaxThreads(workerThreads: int, completionPortThreads: int): boolean;
1467
1468
  static setMinThreads(workerThreads: int, completionPortThreads: int): boolean;
1468
1469
  static unsafeQueueNativeOverlapped(overlapped: ptr<NativeOverlapped>): boolean;
1469
1470
  static unsafeQueueUserWorkItem<TState>(callBack: Action_1<TState>, state: TState, preferLocal: boolean): boolean;
1470
1471
  static unsafeQueueUserWorkItem(callBack: IThreadPoolWorkItem, preferLocal: boolean): boolean;
1471
- static unsafeQueueUserWorkItem(callBack: WaitCallback, state: unknown | undefined): boolean;
1472
- static unsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | undefined, millisecondsTimeOutInterval: int, executeOnlyOnce: boolean): RegisteredWaitHandle;
1473
- static unsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | undefined, millisecondsTimeOutInterval: long, executeOnlyOnce: boolean): RegisteredWaitHandle;
1474
- static unsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | undefined, timeout: TimeSpan, executeOnlyOnce: boolean): RegisteredWaitHandle;
1475
- static unsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | undefined, millisecondsTimeOutInterval: uint, executeOnlyOnce: boolean): RegisteredWaitHandle;
1472
+ static unsafeQueueUserWorkItem(callBack: WaitCallback, state: unknown): boolean;
1473
+ static unsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, millisecondsTimeOutInterval: int, executeOnlyOnce: boolean): RegisteredWaitHandle;
1474
+ static unsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, millisecondsTimeOutInterval: long, executeOnlyOnce: boolean): RegisteredWaitHandle;
1475
+ static unsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, timeout: TimeSpan, executeOnlyOnce: boolean): RegisteredWaitHandle;
1476
+ static unsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, millisecondsTimeOutInterval: uint, executeOnlyOnce: boolean): RegisteredWaitHandle;
1476
1477
  }
1477
1478
 
1478
1479
 
@@ -1524,7 +1525,7 @@ export type Volatile = Volatile$instance;
1524
1525
 
1525
1526
  export abstract class WaitHandleExtensions$instance {
1526
1527
  static getSafeWaitHandle(waitHandle: WaitHandle): SafeWaitHandle;
1527
- static setSafeWaitHandle(waitHandle: WaitHandle, value: SafeWaitHandle | undefined): void;
1528
+ static setSafeWaitHandle(waitHandle: WaitHandle, value: SafeWaitHandle): void;
1528
1529
  }
1529
1530
 
1530
1531
 
@@ -69,9 +69,9 @@ export interface ChannelClosedException$instance extends InvalidOperationExcepti
69
69
 
70
70
  export const ChannelClosedException: {
71
71
  new(): ChannelClosedException;
72
- new(message: string | undefined): ChannelClosedException;
73
- new(innerException: Exception | undefined): ChannelClosedException;
74
- new(message: string | undefined, innerException: Exception | undefined): ChannelClosedException;
72
+ new(message: string): ChannelClosedException;
73
+ new(innerException: Exception): ChannelClosedException;
74
+ new(message: string, innerException: Exception): ChannelClosedException;
75
75
  };
76
76
 
77
77
 
@@ -115,11 +115,11 @@ export const ChannelReader_1: {
115
115
  export type ChannelReader_1<T> = ChannelReader_1$instance<T>;
116
116
 
117
117
  export interface ChannelWriter_1$instance<T> {
118
- complete(error?: Exception | undefined): void;
119
- tryComplete(error?: Exception | undefined): boolean;
120
- tryWrite(item: T | undefined): boolean;
118
+ complete(error?: Exception): void;
119
+ tryComplete(error?: Exception): boolean;
120
+ tryWrite(item: T): boolean;
121
121
  waitToWriteAsync(cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Boolean>;
122
- writeAsync(item: T | undefined, cancellationToken?: CancellationToken): ValueTask;
122
+ writeAsync(item: T, cancellationToken?: CancellationToken): ValueTask;
123
123
  }
124
124
 
125
125
 
@@ -154,7 +154,7 @@ export type UnboundedPrioritizedChannelOptions_1<T> = UnboundedPrioritizedChanne
154
154
 
155
155
  export abstract class Channel$instance {
156
156
  static createBounded<T>(capacity: int): Channel_1<T>;
157
- static createBounded<T>(options: BoundedChannelOptions, itemDropped: Action_1<T> | undefined): Channel_1<T>;
157
+ static createBounded<T>(options: BoundedChannelOptions, itemDropped: Action_1<T>): Channel_1<T>;
158
158
  static createBounded<T>(options: BoundedChannelOptions): Channel_1<T>;
159
159
  static createUnbounded<T>(): Channel_1<T>;
160
160
  static createUnbounded<T>(options: UnboundedChannelOptions): Channel_1<T>;