@tsonic/dotnet 10.0.41 → 10.0.42
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.
- package/Internal/bindings.json +5 -5
- package/Internal/internal/index.d.ts +1 -1
- package/Internal.d.ts +4 -0
- package/Microsoft.CSharp.RuntimeBinder/internal/index.d.ts +1 -1
- package/Microsoft.CSharp.RuntimeBinder.d.ts +4 -0
- package/Microsoft.VisualBasic/bindings.json +13 -13
- package/Microsoft.VisualBasic/internal/index.d.ts +51 -51
- package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +116 -116
- package/Microsoft.VisualBasic.CompilerServices.d.ts +4 -0
- package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +2 -2
- package/Microsoft.VisualBasic.FileIO.d.ts +4 -0
- package/Microsoft.VisualBasic.d.ts +4 -0
- package/Microsoft.Win32/internal/index.d.ts +9 -9
- package/Microsoft.Win32.SafeHandles/internal/index.d.ts +1 -1
- package/Microsoft.Win32.SafeHandles.d.ts +4 -0
- package/Microsoft.Win32.d.ts +4 -0
- package/README.md +8 -1
- package/System/bindings.json +204 -124
- package/System/internal/index.d.ts +1041 -1026
- package/System.Buffers/internal/index.d.ts +51 -51
- package/System.Buffers.Binary/internal/index.d.ts +1 -1
- package/System.Buffers.Binary.d.ts +4 -0
- package/System.Buffers.Text/internal/index.d.ts +1 -1
- package/System.Buffers.Text.d.ts +4 -0
- package/System.Buffers.d.ts +10 -6
- package/System.CodeDom.Compiler/internal/index.d.ts +14 -14
- package/System.CodeDom.Compiler.d.ts +4 -0
- package/System.Collections/bindings.json +300 -300
- package/System.Collections/internal/index.d.ts +113 -113
- package/System.Collections.Concurrent/bindings.json +93 -93
- package/System.Collections.Concurrent/internal/index.d.ts +65 -65
- package/System.Collections.Concurrent.d.ts +7 -3
- package/System.Collections.Frozen/bindings.json +90 -50
- package/System.Collections.Frozen/internal/index.d.ts +35 -33
- package/System.Collections.Frozen.d.ts +6 -2
- package/System.Collections.Generic/bindings.json +932 -612
- package/System.Collections.Generic/internal/index.d.ts +303 -287
- package/System.Collections.Generic.d.ts +19 -15
- package/System.Collections.Immutable/bindings.json +189 -189
- package/System.Collections.Immutable/internal/index.d.ts +235 -234
- package/System.Collections.Immutable.d.ts +21 -17
- package/System.Collections.ObjectModel/bindings.json +229 -229
- package/System.Collections.ObjectModel/internal/index.d.ts +41 -41
- package/System.Collections.ObjectModel.d.ts +6 -2
- package/System.Collections.Specialized/bindings.json +79 -79
- package/System.Collections.Specialized/internal/index.d.ts +46 -46
- package/System.Collections.Specialized.d.ts +4 -0
- package/System.Collections.d.ts +4 -0
- package/System.ComponentModel/bindings.json +108 -108
- package/System.ComponentModel/internal/index.d.ts +368 -363
- package/System.ComponentModel.DataAnnotations/internal/index.d.ts +78 -78
- package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +1 -1
- package/System.ComponentModel.DataAnnotations.Schema.d.ts +4 -0
- package/System.ComponentModel.DataAnnotations.d.ts +4 -0
- package/System.ComponentModel.Design/bindings.json +18 -18
- package/System.ComponentModel.Design/internal/index.d.ts +47 -47
- package/System.ComponentModel.Design.Serialization/internal/index.d.ts +38 -38
- package/System.ComponentModel.Design.Serialization.d.ts +4 -0
- package/System.ComponentModel.Design.d.ts +4 -0
- package/System.ComponentModel.d.ts +4 -0
- package/System.Configuration.Assemblies/internal/index.d.ts +1 -1
- package/System.Configuration.Assemblies.d.ts +4 -0
- package/System.Data/bindings.json +124 -124
- package/System.Data/internal/index.d.ts +156 -156
- package/System.Data.Common/bindings.json +68 -68
- package/System.Data.Common/internal/index.d.ts +42 -42
- package/System.Data.Common.d.ts +4 -0
- package/System.Data.SqlTypes/internal/index.d.ts +40 -40
- package/System.Data.SqlTypes.d.ts +4 -0
- package/System.Data.d.ts +8 -4
- package/System.Diagnostics/bindings.json +251 -231
- package/System.Diagnostics/internal/index.d.ts +167 -154
- package/System.Diagnostics.CodeAnalysis/bindings.json +121 -121
- package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +7 -7
- package/System.Diagnostics.CodeAnalysis.d.ts +4 -0
- package/System.Diagnostics.Contracts/bindings.json +62 -62
- package/System.Diagnostics.Contracts/internal/index.d.ts +9 -9
- package/System.Diagnostics.Contracts.d.ts +4 -0
- package/System.Diagnostics.Metrics/internal/index.d.ts +86 -86
- package/System.Diagnostics.Metrics.d.ts +7 -3
- package/System.Diagnostics.SymbolStore/bindings.json +2 -2
- package/System.Diagnostics.SymbolStore/internal/index.d.ts +3 -3
- package/System.Diagnostics.SymbolStore.d.ts +4 -0
- package/System.Diagnostics.Tracing/bindings.json +212 -212
- package/System.Diagnostics.Tracing/internal/index.d.ts +7 -7
- package/System.Diagnostics.Tracing.d.ts +4 -0
- package/System.Diagnostics.d.ts +5 -1
- package/System.Drawing/internal/index.d.ts +48 -48
- package/System.Drawing.d.ts +4 -0
- package/System.Dynamic/bindings.json +13 -13
- package/System.Dynamic/internal/index.d.ts +36 -35
- package/System.Dynamic.d.ts +4 -0
- package/System.Formats.Asn1/internal/index.d.ts +11 -11
- package/System.Formats.Asn1.d.ts +4 -0
- package/System.Formats.Tar/internal/index.d.ts +1 -1
- package/System.Formats.Tar.d.ts +4 -0
- package/System.Globalization/bindings.json +3 -3
- package/System.Globalization/internal/index.d.ts +19 -19
- package/System.Globalization.d.ts +4 -0
- package/System.IO/bindings.json +957 -957
- package/System.IO/internal/index.d.ts +55 -55
- package/System.IO.Compression/internal/index.d.ts +13 -13
- package/System.IO.Compression.d.ts +4 -0
- package/System.IO.Enumeration/bindings.json +47 -47
- package/System.IO.Enumeration/internal/index.d.ts +11 -11
- package/System.IO.Enumeration.d.ts +4 -0
- package/System.IO.IsolatedStorage/internal/index.d.ts +10 -10
- package/System.IO.IsolatedStorage.d.ts +4 -0
- package/System.IO.MemoryMappedFiles/internal/index.d.ts +1 -1
- package/System.IO.MemoryMappedFiles.d.ts +4 -0
- package/System.IO.Pipelines/internal/index.d.ts +4 -4
- package/System.IO.Pipelines.d.ts +4 -0
- package/System.IO.Pipes/internal/index.d.ts +4 -4
- package/System.IO.Pipes.d.ts +4 -0
- package/System.IO.d.ts +4 -0
- package/System.Linq/bindings.json +22 -22
- package/System.Linq/internal/index.d.ts +703 -701
- package/System.Linq.Expressions/internal/index.d.ts +67 -41
- package/System.Linq.Expressions.Interpreter/internal/index.d.ts +3 -3
- package/System.Linq.Expressions.Interpreter.d.ts +4 -0
- package/System.Linq.Expressions.d.ts +6 -2
- package/System.Linq.d.ts +18 -14
- package/System.Net/bindings.json +27 -27
- package/System.Net/internal/index.d.ts +53 -53
- package/System.Net.Cache/internal/index.d.ts +1 -1
- package/System.Net.Cache.d.ts +4 -0
- package/System.Net.Http/bindings.json +22 -22
- package/System.Net.Http/internal/index.d.ts +16 -16
- package/System.Net.Http.Headers/bindings.json +66 -26
- package/System.Net.Http.Headers/internal/index.d.ts +26 -24
- package/System.Net.Http.Headers.d.ts +4 -0
- package/System.Net.Http.Json/internal/index.d.ts +63 -63
- package/System.Net.Http.Json.d.ts +4 -0
- package/System.Net.Http.Metrics/internal/index.d.ts +2 -2
- package/System.Net.Http.Metrics.d.ts +4 -0
- package/System.Net.Http.d.ts +5 -1
- package/System.Net.Mail/bindings.json +96 -96
- package/System.Net.Mail/internal/index.d.ts +8 -8
- package/System.Net.Mail.d.ts +4 -0
- package/System.Net.Mime/internal/index.d.ts +3 -3
- package/System.Net.Mime.d.ts +4 -0
- package/System.Net.NetworkInformation/bindings.json +40 -40
- package/System.Net.NetworkInformation/internal/index.d.ts +15 -15
- package/System.Net.NetworkInformation.d.ts +4 -0
- package/System.Net.Quic/internal/index.d.ts +4 -4
- package/System.Net.Quic.d.ts +4 -0
- package/System.Net.Security/internal/index.d.ts +29 -29
- package/System.Net.Security.d.ts +4 -0
- package/System.Net.ServerSentEvents/internal/index.d.ts +9 -9
- package/System.Net.ServerSentEvents.d.ts +7 -3
- package/System.Net.Sockets/internal/index.d.ts +42 -42
- package/System.Net.Sockets.d.ts +4 -0
- package/System.Net.WebSockets/bindings.json +101 -101
- package/System.Net.WebSockets/internal/index.d.ts +5 -5
- package/System.Net.WebSockets.d.ts +4 -0
- package/System.Net.d.ts +4 -0
- package/System.Numerics/bindings.json +3 -3
- package/System.Numerics/internal/index.d.ts +218 -218
- package/System.Numerics.d.ts +38 -34
- package/System.Reflection/bindings.json +870 -870
- package/System.Reflection/internal/index.d.ts +107 -107
- package/System.Reflection.Emit/bindings.json +754 -754
- package/System.Reflection.Emit/internal/index.d.ts +27 -25
- package/System.Reflection.Emit.d.ts +4 -0
- package/System.Reflection.Metadata/bindings.json +607 -87
- package/System.Reflection.Metadata/internal/index.d.ts +144 -118
- package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +9 -9
- package/System.Reflection.Metadata.Ecma335.d.ts +4 -0
- package/System.Reflection.Metadata.d.ts +9 -5
- package/System.Reflection.PortableExecutable/internal/index.d.ts +2 -2
- package/System.Reflection.PortableExecutable.d.ts +4 -0
- package/System.Reflection.d.ts +4 -0
- package/System.Resources/bindings.json +3 -3
- package/System.Resources/internal/index.d.ts +7 -7
- package/System.Resources.d.ts +4 -0
- package/System.Runtime/bindings.json +9 -9
- package/System.Runtime/internal/index.d.ts +7 -7
- package/System.Runtime.CompilerServices/bindings.json +383 -383
- package/System.Runtime.CompilerServices/internal/index.d.ts +226 -226
- package/System.Runtime.CompilerServices.d.ts +20 -16
- package/System.Runtime.ConstrainedExecution/bindings.json +9 -9
- package/System.Runtime.ConstrainedExecution/internal/index.d.ts +1 -1
- package/System.Runtime.ConstrainedExecution.d.ts +4 -0
- package/System.Runtime.ExceptionServices/bindings.json +9 -9
- package/System.Runtime.ExceptionServices/internal/index.d.ts +2 -2
- package/System.Runtime.ExceptionServices.d.ts +4 -0
- package/System.Runtime.InteropServices/bindings.json +559 -559
- package/System.Runtime.InteropServices/internal/index.d.ts +182 -182
- package/System.Runtime.InteropServices.ComTypes/bindings.json +349 -349
- package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +19 -19
- package/System.Runtime.InteropServices.ComTypes.d.ts +4 -0
- package/System.Runtime.InteropServices.Java/bindings.json +12 -12
- package/System.Runtime.InteropServices.Java/internal/index.d.ts +2 -2
- package/System.Runtime.InteropServices.Java.d.ts +4 -0
- package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +38 -38
- package/System.Runtime.InteropServices.JavaScript.d.ts +6 -2
- package/System.Runtime.InteropServices.Marshalling/bindings.json +117 -117
- package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +81 -81
- package/System.Runtime.InteropServices.Marshalling.d.ts +4 -0
- package/System.Runtime.InteropServices.ObjectiveC/bindings.json +15 -15
- package/System.Runtime.InteropServices.ObjectiveC/internal/index.d.ts +2 -2
- package/System.Runtime.InteropServices.ObjectiveC.d.ts +4 -0
- package/System.Runtime.InteropServices.Swift/bindings.json +4 -4
- package/System.Runtime.InteropServices.Swift/internal/index.d.ts +4 -4
- package/System.Runtime.InteropServices.Swift.d.ts +6 -2
- package/System.Runtime.InteropServices.d.ts +6 -2
- package/System.Runtime.Intrinsics/internal/index.d.ts +514 -514
- package/System.Runtime.Intrinsics.Arm/bindings.json +31 -31
- package/System.Runtime.Intrinsics.Arm/internal/index.d.ts +1 -1
- package/System.Runtime.Intrinsics.Arm.d.ts +4 -0
- package/System.Runtime.Intrinsics.Wasm/internal/index.d.ts +1 -1
- package/System.Runtime.Intrinsics.Wasm.d.ts +4 -0
- package/System.Runtime.Intrinsics.X86/bindings.json +38 -38
- package/System.Runtime.Intrinsics.X86/internal/index.d.ts +1 -1
- package/System.Runtime.Intrinsics.X86.d.ts +4 -0
- package/System.Runtime.Intrinsics.d.ts +12 -8
- package/System.Runtime.Loader/internal/index.d.ts +1 -1
- package/System.Runtime.Loader.d.ts +4 -0
- package/System.Runtime.Remoting/internal/index.d.ts +3 -3
- package/System.Runtime.Remoting.d.ts +4 -0
- package/System.Runtime.Serialization/bindings.json +13 -13
- package/System.Runtime.Serialization/internal/index.d.ts +102 -102
- package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +4 -4
- package/System.Runtime.Serialization.DataContracts.d.ts +4 -0
- package/System.Runtime.Serialization.Formatters/internal/index.d.ts +1 -1
- package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +3 -3
- package/System.Runtime.Serialization.Formatters.Binary.d.ts +4 -0
- package/System.Runtime.Serialization.Formatters.d.ts +4 -0
- package/System.Runtime.Serialization.Json/internal/index.d.ts +13 -13
- package/System.Runtime.Serialization.Json.d.ts +4 -0
- package/System.Runtime.Serialization.d.ts +4 -0
- package/System.Runtime.Versioning/bindings.json +13 -13
- package/System.Runtime.Versioning/internal/index.d.ts +2 -2
- package/System.Runtime.Versioning.d.ts +4 -0
- package/System.Runtime.d.ts +4 -0
- package/System.Security/bindings.json +5 -5
- package/System.Security/internal/index.d.ts +10 -10
- package/System.Security.AccessControl/bindings.json +33 -33
- package/System.Security.AccessControl/internal/index.d.ts +21 -21
- package/System.Security.AccessControl.d.ts +10 -6
- package/System.Security.Authentication/internal/index.d.ts +1 -1
- package/System.Security.Authentication.ExtendedProtection/bindings.json +5 -5
- package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +3 -3
- package/System.Security.Authentication.ExtendedProtection.d.ts +4 -0
- package/System.Security.Authentication.d.ts +4 -0
- package/System.Security.Claims/internal/index.d.ts +3 -3
- package/System.Security.Claims.d.ts +4 -0
- package/System.Security.Cryptography/bindings.json +40 -40
- package/System.Security.Cryptography/internal/index.d.ts +28 -27
- package/System.Security.Cryptography.X509Certificates/bindings.json +312 -312
- package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +10 -10
- package/System.Security.Cryptography.X509Certificates.d.ts +4 -0
- package/System.Security.Cryptography.d.ts +4 -0
- package/System.Security.Permissions/internal/index.d.ts +1 -1
- package/System.Security.Permissions.d.ts +4 -0
- package/System.Security.Policy/bindings.json +5 -5
- package/System.Security.Policy/internal/index.d.ts +9 -9
- package/System.Security.Policy.d.ts +4 -0
- package/System.Security.Principal/bindings.json +8 -8
- package/System.Security.Principal/internal/index.d.ts +8 -8
- package/System.Security.Principal.d.ts +4 -0
- package/System.Security.d.ts +4 -0
- package/System.Text/bindings.json +20 -20
- package/System.Text/internal/index.d.ts +48 -48
- package/System.Text.Encodings.Web/internal/index.d.ts +1 -1
- package/System.Text.Encodings.Web.d.ts +4 -0
- package/System.Text.Json/internal/index.d.ts +109 -109
- package/System.Text.Json.Nodes/bindings.json +27 -27
- package/System.Text.Json.Nodes/internal/index.d.ts +8 -8
- package/System.Text.Json.Nodes.d.ts +4 -0
- package/System.Text.Json.Schema/internal/index.d.ts +1 -1
- package/System.Text.Json.Schema.d.ts +4 -0
- package/System.Text.Json.Serialization/internal/index.d.ts +18 -18
- package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +67 -67
- package/System.Text.Json.Serialization.Metadata.d.ts +6 -2
- package/System.Text.Json.Serialization.d.ts +10 -6
- package/System.Text.Json.d.ts +4 -0
- package/System.Text.RegularExpressions/bindings.json +158 -118
- package/System.Text.RegularExpressions/internal/index.d.ts +9 -7
- package/System.Text.RegularExpressions.d.ts +4 -0
- package/System.Text.Unicode/internal/index.d.ts +6 -6
- package/System.Text.Unicode.d.ts +4 -0
- package/System.Text.d.ts +4 -0
- package/System.Threading/bindings.json +19 -19
- package/System.Threading/internal/index.d.ts +97 -97
- package/System.Threading.Channels/internal/index.d.ts +23 -23
- package/System.Threading.Channels.d.ts +8 -4
- package/System.Threading.Tasks/bindings.json +138 -38
- package/System.Threading.Tasks/internal/index.d.ts +229 -227
- package/System.Threading.Tasks.Dataflow/internal/index.d.ts +95 -95
- package/System.Threading.Tasks.Dataflow.d.ts +18 -14
- package/System.Threading.Tasks.Sources/bindings.json +9 -9
- package/System.Threading.Tasks.Sources/internal/index.d.ts +9 -9
- package/System.Threading.Tasks.Sources.d.ts +6 -2
- package/System.Threading.Tasks.d.ts +12 -8
- package/System.Threading.d.ts +4 -0
- package/System.Timers/internal/index.d.ts +2 -2
- package/System.Timers.d.ts +4 -0
- package/System.Transactions/internal/index.d.ts +6 -6
- package/System.Transactions.d.ts +4 -0
- package/System.Web/internal/index.d.ts +2 -2
- package/System.Web.d.ts +4 -0
- package/System.Windows.Input/internal/index.d.ts +3 -3
- package/System.Windows.Input.d.ts +4 -0
- package/System.Windows.Markup/internal/index.d.ts +1 -1
- package/System.Windows.Markup.d.ts +4 -0
- package/System.Xml/bindings.json +27 -27
- package/System.Xml/internal/index.d.ts +29 -29
- package/System.Xml.Linq/bindings.json +6 -6
- package/System.Xml.Linq/internal/index.d.ts +49 -49
- package/System.Xml.Linq.d.ts +4 -0
- package/System.Xml.Resolvers/internal/index.d.ts +3 -3
- package/System.Xml.Resolvers.d.ts +4 -0
- package/System.Xml.Schema/bindings.json +24 -24
- package/System.Xml.Schema/internal/index.d.ts +24 -24
- package/System.Xml.Schema.d.ts +4 -0
- package/System.Xml.Serialization/bindings.json +57 -57
- package/System.Xml.Serialization/internal/index.d.ts +49 -49
- package/System.Xml.Serialization.d.ts +4 -0
- package/System.Xml.XPath/bindings.json +1 -1
- package/System.Xml.XPath/internal/index.d.ts +18 -18
- package/System.Xml.XPath.d.ts +4 -0
- package/System.Xml.Xsl/bindings.json +1 -1
- package/System.Xml.Xsl/internal/index.d.ts +12 -12
- package/System.Xml.Xsl.Runtime/bindings.json +70 -70
- package/System.Xml.Xsl.Runtime/internal/index.d.ts +21 -21
- package/System.Xml.Xsl.Runtime.d.ts +4 -0
- package/System.Xml.Xsl.d.ts +4 -0
- package/System.Xml.d.ts +4 -0
- package/System.d.ts +126 -122
- package/__internal/extensions/index.d.ts +1288 -1293
- package/package.json +2 -2
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Assembly: System.Private.CoreLib, System.Threading, System.Threading.AccessControl
|
|
4
4
|
|
|
5
5
|
// Core type aliases from @tsonic/core
|
|
6
|
-
import type {
|
|
6
|
+
import type { fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
// Import types from other namespaces
|
|
@@ -72,31 +72,31 @@ export enum ThreadState {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
|
|
75
|
-
export type ContextCallback = (state:
|
|
75
|
+
export type ContextCallback = (state: unknown | null) => void;
|
|
76
76
|
|
|
77
77
|
|
|
78
78
|
export type IOCompletionCallback = (errorCode: uint, numBytes: uint, pOVERLAP: ptr<NativeOverlapped>) => void;
|
|
79
79
|
|
|
80
80
|
|
|
81
|
-
export type ParameterizedThreadStart = (obj:
|
|
81
|
+
export type ParameterizedThreadStart = (obj: unknown | null) => void;
|
|
82
82
|
|
|
83
83
|
|
|
84
|
-
export type SendOrPostCallback = (state:
|
|
84
|
+
export type SendOrPostCallback = (state: unknown | null) => void;
|
|
85
85
|
|
|
86
86
|
|
|
87
|
-
export type ThreadExceptionEventHandler = (sender:
|
|
87
|
+
export type ThreadExceptionEventHandler = (sender: unknown, e: ThreadExceptionEventArgs) => void;
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
export type ThreadStart = () => void;
|
|
91
91
|
|
|
92
92
|
|
|
93
|
-
export type TimerCallback = (state:
|
|
93
|
+
export type TimerCallback = (state: unknown | null) => void;
|
|
94
94
|
|
|
95
95
|
|
|
96
|
-
export type WaitCallback = (state:
|
|
96
|
+
export type WaitCallback = (state: unknown | null) => void;
|
|
97
97
|
|
|
98
98
|
|
|
99
|
-
export type WaitOrTimerCallback = (state:
|
|
99
|
+
export type WaitOrTimerCallback = (state: unknown | null, timedOut: boolean) => void;
|
|
100
100
|
|
|
101
101
|
|
|
102
102
|
export interface IThreadPoolWorkItem$instance {
|
|
@@ -128,7 +128,7 @@ export interface AsyncFlowControl$instance extends System_Internal.IDisposable$i
|
|
|
128
128
|
readonly __tsonic_iface_System_IEquatable_1: never;
|
|
129
129
|
|
|
130
130
|
Dispose(): void;
|
|
131
|
-
Equals(obj:
|
|
131
|
+
Equals(obj: unknown | null): boolean;
|
|
132
132
|
Equals(obj: AsyncFlowControl): boolean;
|
|
133
133
|
GetHashCode(): int;
|
|
134
134
|
Undo(): void;
|
|
@@ -151,7 +151,7 @@ export interface __AsyncFlowControl$views {
|
|
|
151
151
|
export type AsyncFlowControl = AsyncFlowControl$instance & __AsyncFlowControl$views;
|
|
152
152
|
|
|
153
153
|
|
|
154
|
-
export interface AsyncLocalValueChangedArgs_1$instance<T> {
|
|
154
|
+
export interface AsyncLocalValueChangedArgs_1$instance<T extends unknown> {
|
|
155
155
|
readonly __tsonic_type_System_Threading_AsyncLocalValueChangedArgs_1: never;
|
|
156
156
|
|
|
157
157
|
readonly CurrentValue: T | null;
|
|
@@ -161,11 +161,11 @@ export interface AsyncLocalValueChangedArgs_1$instance<T> {
|
|
|
161
161
|
|
|
162
162
|
|
|
163
163
|
export const AsyncLocalValueChangedArgs_1: {
|
|
164
|
-
new<T>(): AsyncLocalValueChangedArgs_1<T>;
|
|
164
|
+
new<T extends unknown>(): AsyncLocalValueChangedArgs_1<T>;
|
|
165
165
|
};
|
|
166
166
|
|
|
167
167
|
|
|
168
|
-
export type AsyncLocalValueChangedArgs_1<T> = AsyncLocalValueChangedArgs_1$instance<T>;
|
|
168
|
+
export type AsyncLocalValueChangedArgs_1<T extends unknown> = AsyncLocalValueChangedArgs_1$instance<T>;
|
|
169
169
|
|
|
170
170
|
export interface CancellationToken$instance {
|
|
171
171
|
readonly __tsonic_type_System_Threading_CancellationToken: never;
|
|
@@ -176,16 +176,16 @@ export interface CancellationToken$instance {
|
|
|
176
176
|
readonly IsCancellationRequested: boolean;
|
|
177
177
|
readonly WaitHandle: WaitHandle;
|
|
178
178
|
Equals(other: CancellationToken): boolean;
|
|
179
|
-
Equals(other:
|
|
179
|
+
Equals(other: unknown | null): boolean;
|
|
180
180
|
GetHashCode(): int;
|
|
181
181
|
Register(callback: Action): CancellationTokenRegistration;
|
|
182
182
|
Register(callback: Action, useSynchronizationContext: boolean): CancellationTokenRegistration;
|
|
183
|
-
Register(callback: Action_1<
|
|
184
|
-
Register(callback: Action_2<
|
|
185
|
-
Register(callback: Action_1<
|
|
183
|
+
Register(callback: Action_1<unknown | null>, state: unknown | null): CancellationTokenRegistration;
|
|
184
|
+
Register(callback: Action_2<unknown | null, CancellationToken>, state: unknown | null): CancellationTokenRegistration;
|
|
185
|
+
Register(callback: Action_1<unknown | null>, state: unknown | null, useSynchronizationContext: boolean): CancellationTokenRegistration;
|
|
186
186
|
ThrowIfCancellationRequested(): void;
|
|
187
|
-
UnsafeRegister(callback: Action_1<
|
|
188
|
-
UnsafeRegister(callback: Action_2<
|
|
187
|
+
UnsafeRegister(callback: Action_1<unknown | null>, state: unknown | null): CancellationTokenRegistration;
|
|
188
|
+
UnsafeRegister(callback: Action_2<unknown | null, CancellationToken>, state: unknown | null): CancellationTokenRegistration;
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
|
|
@@ -215,7 +215,7 @@ export interface CancellationTokenRegistration$instance extends System_Internal.
|
|
|
215
215
|
readonly Token: CancellationToken;
|
|
216
216
|
Dispose(): void;
|
|
217
217
|
DisposeAsync(): ValueTask;
|
|
218
|
-
Equals(obj:
|
|
218
|
+
Equals(obj: unknown | null): boolean;
|
|
219
219
|
Equals(other: CancellationTokenRegistration): boolean;
|
|
220
220
|
GetHashCode(): int;
|
|
221
221
|
Unregister(): boolean;
|
|
@@ -244,7 +244,7 @@ export interface LockCookie$instance {
|
|
|
244
244
|
|
|
245
245
|
readonly __tsonic_iface_System_IEquatable_1: never;
|
|
246
246
|
|
|
247
|
-
Equals(obj:
|
|
247
|
+
Equals(obj: unknown | null): boolean;
|
|
248
248
|
Equals(obj: LockCookie): boolean;
|
|
249
249
|
GetHashCode(): int;
|
|
250
250
|
}
|
|
@@ -368,7 +368,7 @@ export interface __AbandonedMutexException$views {
|
|
|
368
368
|
export type AbandonedMutexException = AbandonedMutexException$instance & __AbandonedMutexException$views;
|
|
369
369
|
|
|
370
370
|
|
|
371
|
-
export interface AsyncLocal_1$instance<T> {
|
|
371
|
+
export interface AsyncLocal_1$instance<T extends unknown> {
|
|
372
372
|
readonly __tsonic_type_System_Threading_AsyncLocal_1: never;
|
|
373
373
|
|
|
374
374
|
readonly __tsonic_iface_System_Threading_IAsyncLocal: never;
|
|
@@ -378,12 +378,12 @@ export interface AsyncLocal_1$instance<T> {
|
|
|
378
378
|
|
|
379
379
|
|
|
380
380
|
export const AsyncLocal_1: {
|
|
381
|
-
new<T>(): AsyncLocal_1<T>;
|
|
382
|
-
new<T>(valueChangedHandler: Action_1<AsyncLocalValueChangedArgs_1<T>> | null): AsyncLocal_1<T>;
|
|
381
|
+
new<T extends unknown>(): AsyncLocal_1<T>;
|
|
382
|
+
new<T extends unknown>(valueChangedHandler: Action_1<AsyncLocalValueChangedArgs_1<T>> | null): AsyncLocal_1<T>;
|
|
383
383
|
};
|
|
384
384
|
|
|
385
385
|
|
|
386
|
-
export type AsyncLocal_1<T> = AsyncLocal_1$instance<T>;
|
|
386
|
+
export type AsyncLocal_1<T extends unknown> = AsyncLocal_1$instance<T>;
|
|
387
387
|
|
|
388
388
|
export interface AutoResetEvent$instance extends EventWaitHandle$instance {
|
|
389
389
|
readonly __tsonic_type_System_Threading_AutoResetEvent: never;
|
|
@@ -514,7 +514,7 @@ export interface CompressedStack$instance extends System_Runtime_Serialization_I
|
|
|
514
514
|
export const CompressedStack: {
|
|
515
515
|
Capture(): CompressedStack;
|
|
516
516
|
GetCompressedStack(): CompressedStack;
|
|
517
|
-
Run(compressedStack: CompressedStack, callback: ContextCallback, state:
|
|
517
|
+
Run(compressedStack: CompressedStack, callback: ContextCallback, state: unknown | null): void;
|
|
518
518
|
};
|
|
519
519
|
|
|
520
520
|
|
|
@@ -612,7 +612,7 @@ export const ExecutionContext: {
|
|
|
612
612
|
IsFlowSuppressed(): boolean;
|
|
613
613
|
Restore(executionContext: ExecutionContext): void;
|
|
614
614
|
RestoreFlow(): void;
|
|
615
|
-
Run(executionContext: ExecutionContext, callback: ContextCallback, state:
|
|
615
|
+
Run(executionContext: ExecutionContext, callback: ContextCallback, state: unknown | null): void;
|
|
616
616
|
SuppressFlow(): AsyncFlowControl;
|
|
617
617
|
};
|
|
618
618
|
|
|
@@ -638,7 +638,7 @@ export interface HostExecutionContext$instance {
|
|
|
638
638
|
|
|
639
639
|
export const HostExecutionContext: {
|
|
640
640
|
new(): HostExecutionContext;
|
|
641
|
-
new(state:
|
|
641
|
+
new(state: unknown | null): HostExecutionContext;
|
|
642
642
|
};
|
|
643
643
|
|
|
644
644
|
|
|
@@ -653,8 +653,8 @@ export interface HostExecutionContextManager$instance {
|
|
|
653
653
|
readonly __tsonic_type_System_Threading_HostExecutionContextManager: never;
|
|
654
654
|
|
|
655
655
|
Capture(): HostExecutionContext | null;
|
|
656
|
-
Revert(previousState:
|
|
657
|
-
SetHostExecutionContext(hostExecutionContext: HostExecutionContext):
|
|
656
|
+
Revert(previousState: unknown): void;
|
|
657
|
+
SetHostExecutionContext(hostExecutionContext: HostExecutionContext): unknown;
|
|
658
658
|
}
|
|
659
659
|
|
|
660
660
|
|
|
@@ -816,9 +816,9 @@ export interface Overlapped$instance {
|
|
|
816
816
|
OffsetHigh: int;
|
|
817
817
|
OffsetLow: int;
|
|
818
818
|
Pack(iocb: IOCompletionCallback | null): ptr<NativeOverlapped>;
|
|
819
|
-
Pack(iocb: IOCompletionCallback | null, userData:
|
|
819
|
+
Pack(iocb: IOCompletionCallback | null, userData: unknown | null): ptr<NativeOverlapped>;
|
|
820
820
|
UnsafePack(iocb: IOCompletionCallback | null): ptr<NativeOverlapped>;
|
|
821
|
-
UnsafePack(iocb: IOCompletionCallback | null, userData:
|
|
821
|
+
UnsafePack(iocb: IOCompletionCallback | null, userData: unknown | null): ptr<NativeOverlapped>;
|
|
822
822
|
}
|
|
823
823
|
|
|
824
824
|
|
|
@@ -868,8 +868,8 @@ export interface PreAllocatedOverlapped$instance extends System_Internal.IDispos
|
|
|
868
868
|
|
|
869
869
|
|
|
870
870
|
export const PreAllocatedOverlapped: {
|
|
871
|
-
new(callback: IOCompletionCallback, state:
|
|
872
|
-
UnsafeCreate(callback: IOCompletionCallback, state:
|
|
871
|
+
new(callback: IOCompletionCallback, state: unknown | null, pinData: unknown | null): PreAllocatedOverlapped;
|
|
872
|
+
UnsafeCreate(callback: IOCompletionCallback, state: unknown | null, pinData: unknown | null): PreAllocatedOverlapped;
|
|
873
873
|
};
|
|
874
874
|
|
|
875
875
|
|
|
@@ -1064,8 +1064,8 @@ export interface SynchronizationContext$instance {
|
|
|
1064
1064
|
IsWaitNotificationRequired(): boolean;
|
|
1065
1065
|
OperationCompleted(): void;
|
|
1066
1066
|
OperationStarted(): void;
|
|
1067
|
-
Post(d: SendOrPostCallback, state:
|
|
1068
|
-
Send(d: SendOrPostCallback, state:
|
|
1067
|
+
Post(d: SendOrPostCallback, state: unknown | null): void;
|
|
1068
|
+
Send(d: SendOrPostCallback, state: unknown | null): void;
|
|
1069
1069
|
Wait(waitHandles: nint[], waitAll: boolean, millisecondsTimeout: int): int;
|
|
1070
1070
|
}
|
|
1071
1071
|
|
|
@@ -1118,7 +1118,7 @@ export interface Thread$instance extends CriticalFinalizerObject {
|
|
|
1118
1118
|
Priority: ThreadPriority;
|
|
1119
1119
|
readonly ThreadState: ThreadState;
|
|
1120
1120
|
Abort(): void;
|
|
1121
|
-
Abort(stateInfo:
|
|
1121
|
+
Abort(stateInfo: unknown | null): void;
|
|
1122
1122
|
DisableComObjectEagerCleanup(): void;
|
|
1123
1123
|
Finalize(): void;
|
|
1124
1124
|
GetApartmentState(): ApartmentState;
|
|
@@ -1131,11 +1131,11 @@ export interface Thread$instance extends CriticalFinalizerObject {
|
|
|
1131
1131
|
Resume(): void;
|
|
1132
1132
|
SetApartmentState(state: ApartmentState): void;
|
|
1133
1133
|
SetCompressedStack(stack: CompressedStack): void;
|
|
1134
|
-
Start(parameter:
|
|
1134
|
+
Start(parameter: unknown | null): void;
|
|
1135
1135
|
Start(): void;
|
|
1136
1136
|
Suspend(): void;
|
|
1137
1137
|
TrySetApartmentState(state: ApartmentState): boolean;
|
|
1138
|
-
UnsafeStart(parameter:
|
|
1138
|
+
UnsafeStart(parameter: unknown | null): void;
|
|
1139
1139
|
UnsafeStart(): void;
|
|
1140
1140
|
}
|
|
1141
1141
|
|
|
@@ -1156,13 +1156,13 @@ export const Thread: {
|
|
|
1156
1156
|
EndThreadAffinity(): void;
|
|
1157
1157
|
FreeNamedDataSlot(name: string): void;
|
|
1158
1158
|
GetCurrentProcessorId(): int;
|
|
1159
|
-
GetData(slot: LocalDataStoreSlot):
|
|
1159
|
+
GetData(slot: LocalDataStoreSlot): unknown | null;
|
|
1160
1160
|
GetDomain(): AppDomain;
|
|
1161
1161
|
GetDomainID(): int;
|
|
1162
1162
|
GetNamedDataSlot(name: string): LocalDataStoreSlot;
|
|
1163
1163
|
MemoryBarrier(): void;
|
|
1164
1164
|
ResetAbort(): void;
|
|
1165
|
-
SetData(slot: LocalDataStoreSlot, data:
|
|
1165
|
+
SetData(slot: LocalDataStoreSlot, data: unknown | null): void;
|
|
1166
1166
|
Sleep(millisecondsTimeout: int): void;
|
|
1167
1167
|
Sleep(timeout: TimeSpan): void;
|
|
1168
1168
|
SpinWait(iterations: int): void;
|
|
@@ -1172,7 +1172,7 @@ export const Thread: {
|
|
|
1172
1172
|
VolatileRead(address: int): int;
|
|
1173
1173
|
VolatileRead(address: long): long;
|
|
1174
1174
|
VolatileRead(address: nint): nint;
|
|
1175
|
-
VolatileRead(address:
|
|
1175
|
+
VolatileRead(address: unknown | null): unknown | null;
|
|
1176
1176
|
VolatileRead(address: sbyte): sbyte;
|
|
1177
1177
|
VolatileRead(address: float): float;
|
|
1178
1178
|
VolatileRead(address: ushort): ushort;
|
|
@@ -1185,7 +1185,7 @@ export const Thread: {
|
|
|
1185
1185
|
VolatileWrite(address: int, value: int): void;
|
|
1186
1186
|
VolatileWrite(address: long, value: long): void;
|
|
1187
1187
|
VolatileWrite(address: nint, value: nint): void;
|
|
1188
|
-
VolatileWrite(address:
|
|
1188
|
+
VolatileWrite(address: unknown | null, value: unknown | null): void;
|
|
1189
1189
|
VolatileWrite(address: sbyte, value: sbyte): void;
|
|
1190
1190
|
VolatileWrite(address: float, value: float): void;
|
|
1191
1191
|
VolatileWrite(address: ushort, value: ushort): void;
|
|
@@ -1203,7 +1203,7 @@ export interface ThreadAbortException$instance extends SystemException, System_R
|
|
|
1203
1203
|
|
|
1204
1204
|
readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never;
|
|
1205
1205
|
|
|
1206
|
-
readonly ExceptionState:
|
|
1206
|
+
readonly ExceptionState: unknown | null;
|
|
1207
1207
|
}
|
|
1208
1208
|
|
|
1209
1209
|
|
|
@@ -1254,7 +1254,7 @@ export interface __ThreadInterruptedException$views {
|
|
|
1254
1254
|
export type ThreadInterruptedException = ThreadInterruptedException$instance & __ThreadInterruptedException$views;
|
|
1255
1255
|
|
|
1256
1256
|
|
|
1257
|
-
export interface ThreadLocal_1$instance<T> {
|
|
1257
|
+
export interface ThreadLocal_1$instance<T extends unknown> {
|
|
1258
1258
|
readonly __tsonic_type_System_Threading_ThreadLocal_1: never;
|
|
1259
1259
|
|
|
1260
1260
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
@@ -1270,18 +1270,18 @@ export interface ThreadLocal_1$instance<T> {
|
|
|
1270
1270
|
|
|
1271
1271
|
|
|
1272
1272
|
export const ThreadLocal_1: {
|
|
1273
|
-
new<T>(): ThreadLocal_1<T>;
|
|
1274
|
-
new<T>(trackAllValues: boolean): ThreadLocal_1<T>;
|
|
1275
|
-
new<T>(valueFactory: Func_1<T>): ThreadLocal_1<T>;
|
|
1276
|
-
new<T>(valueFactory: Func_1<T>, trackAllValues: boolean): ThreadLocal_1<T>;
|
|
1273
|
+
new<T extends unknown>(): ThreadLocal_1<T>;
|
|
1274
|
+
new<T extends unknown>(trackAllValues: boolean): ThreadLocal_1<T>;
|
|
1275
|
+
new<T extends unknown>(valueFactory: Func_1<T>): ThreadLocal_1<T>;
|
|
1276
|
+
new<T extends unknown>(valueFactory: Func_1<T>, trackAllValues: boolean): ThreadLocal_1<T>;
|
|
1277
1277
|
};
|
|
1278
1278
|
|
|
1279
1279
|
|
|
1280
|
-
export interface __ThreadLocal_1$views<T> {
|
|
1280
|
+
export interface __ThreadLocal_1$views<T extends unknown> {
|
|
1281
1281
|
As_IDisposable(): System_Internal.IDisposable$instance;
|
|
1282
1282
|
}
|
|
1283
1283
|
|
|
1284
|
-
export type ThreadLocal_1<T> = ThreadLocal_1$instance<T> & __ThreadLocal_1$views<T>;
|
|
1284
|
+
export type ThreadLocal_1<T extends unknown> = ThreadLocal_1$instance<T> & __ThreadLocal_1$views<T>;
|
|
1285
1285
|
|
|
1286
1286
|
|
|
1287
1287
|
export interface ThreadPoolBoundHandle$instance extends System_Internal.IDisposable$instance {
|
|
@@ -1290,17 +1290,17 @@ export interface ThreadPoolBoundHandle$instance extends System_Internal.IDisposa
|
|
|
1290
1290
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
1291
1291
|
|
|
1292
1292
|
readonly Handle: SafeHandle;
|
|
1293
|
-
AllocateNativeOverlapped(callback: IOCompletionCallback, state:
|
|
1293
|
+
AllocateNativeOverlapped(callback: IOCompletionCallback, state: unknown | null, pinData: unknown | null): ptr<NativeOverlapped>;
|
|
1294
1294
|
AllocateNativeOverlapped(preAllocated: PreAllocatedOverlapped): ptr<NativeOverlapped>;
|
|
1295
1295
|
Dispose(): void;
|
|
1296
1296
|
FreeNativeOverlapped(overlapped: ptr<NativeOverlapped>): void;
|
|
1297
|
-
UnsafeAllocateNativeOverlapped(callback: IOCompletionCallback, state:
|
|
1297
|
+
UnsafeAllocateNativeOverlapped(callback: IOCompletionCallback, state: unknown | null, pinData: unknown | null): ptr<NativeOverlapped>;
|
|
1298
1298
|
}
|
|
1299
1299
|
|
|
1300
1300
|
|
|
1301
1301
|
export const ThreadPoolBoundHandle: {
|
|
1302
1302
|
BindHandle(handle: SafeHandle): ThreadPoolBoundHandle;
|
|
1303
|
-
GetNativeOverlappedState(overlapped: ptr<NativeOverlapped>):
|
|
1303
|
+
GetNativeOverlappedState(overlapped: ptr<NativeOverlapped>): unknown | null;
|
|
1304
1304
|
};
|
|
1305
1305
|
|
|
1306
1306
|
|
|
@@ -1370,10 +1370,10 @@ export interface Timer$instance extends MarshalByRefObject {
|
|
|
1370
1370
|
|
|
1371
1371
|
|
|
1372
1372
|
export const Timer: {
|
|
1373
|
-
new(callback: TimerCallback, state:
|
|
1374
|
-
new(callback: TimerCallback, state:
|
|
1375
|
-
new(callback: TimerCallback, state:
|
|
1376
|
-
new(callback: TimerCallback, state:
|
|
1373
|
+
new(callback: TimerCallback, state: unknown | null, dueTime: int, period: int): Timer;
|
|
1374
|
+
new(callback: TimerCallback, state: unknown | null, dueTime: TimeSpan, period: TimeSpan): Timer;
|
|
1375
|
+
new(callback: TimerCallback, state: unknown | null, dueTime: uint, period: uint): Timer;
|
|
1376
|
+
new(callback: TimerCallback, state: unknown | null, dueTime: long, period: long): Timer;
|
|
1377
1377
|
new(callback: TimerCallback): Timer;
|
|
1378
1378
|
readonly ActiveCount: long;
|
|
1379
1379
|
};
|
|
@@ -1478,14 +1478,14 @@ export abstract class Interlocked$instance {
|
|
|
1478
1478
|
static CompareExchange(location1: int, value: int, comparand: int): int;
|
|
1479
1479
|
static CompareExchange(location1: long, value: long, comparand: long): long;
|
|
1480
1480
|
static CompareExchange(location1: nint, value: nint, comparand: nint): nint;
|
|
1481
|
-
static CompareExchange(location1:
|
|
1481
|
+
static CompareExchange(location1: unknown | null, value: unknown | null, comparand: unknown | null): unknown | null;
|
|
1482
1482
|
static CompareExchange(location1: sbyte, value: sbyte, comparand: sbyte): sbyte;
|
|
1483
1483
|
static CompareExchange(location1: float, value: float, comparand: float): float;
|
|
1484
1484
|
static CompareExchange(location1: ushort, value: ushort, comparand: ushort): ushort;
|
|
1485
1485
|
static CompareExchange(location1: uint, value: uint, comparand: uint): uint;
|
|
1486
1486
|
static CompareExchange(location1: ulong, value: ulong, comparand: ulong): ulong;
|
|
1487
1487
|
static CompareExchange(location1: nuint, value: nuint, comparand: nuint): nuint;
|
|
1488
|
-
static CompareExchange<T>(location1: T, value: T, comparand: T): T;
|
|
1488
|
+
static CompareExchange<T extends unknown>(location1: T, value: T, comparand: T): T;
|
|
1489
1489
|
static Decrement(location: int): int;
|
|
1490
1490
|
static Decrement(location: long): long;
|
|
1491
1491
|
static Decrement(location: uint): uint;
|
|
@@ -1496,14 +1496,14 @@ export abstract class Interlocked$instance {
|
|
|
1496
1496
|
static Exchange(location1: int, value: int): int;
|
|
1497
1497
|
static Exchange(location1: long, value: long): long;
|
|
1498
1498
|
static Exchange(location1: nint, value: nint): nint;
|
|
1499
|
-
static Exchange(location1:
|
|
1499
|
+
static Exchange(location1: unknown | null, value: unknown | null): unknown | null;
|
|
1500
1500
|
static Exchange(location1: sbyte, value: sbyte): sbyte;
|
|
1501
1501
|
static Exchange(location1: float, value: float): float;
|
|
1502
1502
|
static Exchange(location1: ushort, value: ushort): ushort;
|
|
1503
1503
|
static Exchange(location1: uint, value: uint): uint;
|
|
1504
1504
|
static Exchange(location1: ulong, value: ulong): ulong;
|
|
1505
1505
|
static Exchange(location1: nuint, value: nuint): nuint;
|
|
1506
|
-
static Exchange<T>(location1: T, value: T): T;
|
|
1506
|
+
static Exchange<T extends unknown>(location1: T, value: T): T;
|
|
1507
1507
|
static Increment(location: int): int;
|
|
1508
1508
|
static Increment(location: long): long;
|
|
1509
1509
|
static Increment(location: uint): uint;
|
|
@@ -1522,11 +1522,11 @@ export abstract class Interlocked$instance {
|
|
|
1522
1522
|
export type Interlocked = Interlocked$instance;
|
|
1523
1523
|
|
|
1524
1524
|
export abstract class LazyInitializer$instance {
|
|
1525
|
-
static EnsureInitialized<T>(target: T | null, valueFactory: Func_1<T>): T;
|
|
1526
|
-
static EnsureInitialized<T>(target: T, initialized: boolean, syncLock:
|
|
1527
|
-
static EnsureInitialized<T>(target: T, initialized: boolean, syncLock:
|
|
1528
|
-
static EnsureInitialized<T>(target: T | null, syncLock:
|
|
1529
|
-
static EnsureInitialized<T>(target: T | null): T;
|
|
1525
|
+
static EnsureInitialized<T extends (object | null)>(target: T | null, valueFactory: Func_1<T>): T;
|
|
1526
|
+
static EnsureInitialized<T extends unknown>(target: T, initialized: boolean, syncLock: unknown | null, valueFactory: Func_1<T>): T;
|
|
1527
|
+
static EnsureInitialized<T extends unknown>(target: T, initialized: boolean, syncLock: unknown | null): T;
|
|
1528
|
+
static EnsureInitialized<T extends (object | null)>(target: T | null, syncLock: unknown | null, valueFactory: Func_1<T>): T;
|
|
1529
|
+
static EnsureInitialized<T extends (object | null)>(target: T | null): T;
|
|
1530
1530
|
}
|
|
1531
1531
|
|
|
1532
1532
|
|
|
@@ -1534,23 +1534,23 @@ export type LazyInitializer = LazyInitializer$instance;
|
|
|
1534
1534
|
|
|
1535
1535
|
export abstract class Monitor$instance {
|
|
1536
1536
|
static readonly LockContentionCount: long;
|
|
1537
|
-
static Enter(obj:
|
|
1538
|
-
static Enter(obj:
|
|
1539
|
-
static Exit(obj:
|
|
1540
|
-
static IsEntered(obj:
|
|
1541
|
-
static Pulse(obj:
|
|
1542
|
-
static PulseAll(obj:
|
|
1543
|
-
static TryEnter(obj:
|
|
1544
|
-
static TryEnter(obj:
|
|
1545
|
-
static TryEnter(obj:
|
|
1546
|
-
static TryEnter(obj:
|
|
1547
|
-
static TryEnter(obj:
|
|
1548
|
-
static TryEnter(obj:
|
|
1549
|
-
static Wait(obj:
|
|
1550
|
-
static Wait(obj:
|
|
1551
|
-
static Wait(obj:
|
|
1552
|
-
static Wait(obj:
|
|
1553
|
-
static Wait(obj:
|
|
1537
|
+
static Enter(obj: unknown, lockTaken: boolean): void;
|
|
1538
|
+
static Enter(obj: unknown): void;
|
|
1539
|
+
static Exit(obj: unknown): void;
|
|
1540
|
+
static IsEntered(obj: unknown): boolean;
|
|
1541
|
+
static Pulse(obj: unknown): void;
|
|
1542
|
+
static PulseAll(obj: unknown): void;
|
|
1543
|
+
static TryEnter(obj: unknown, lockTaken: boolean): void;
|
|
1544
|
+
static TryEnter(obj: unknown, millisecondsTimeout: int, lockTaken: boolean): void;
|
|
1545
|
+
static TryEnter(obj: unknown, millisecondsTimeout: int): boolean;
|
|
1546
|
+
static TryEnter(obj: unknown, timeout: TimeSpan, lockTaken: boolean): void;
|
|
1547
|
+
static TryEnter(obj: unknown, timeout: TimeSpan): boolean;
|
|
1548
|
+
static TryEnter(obj: unknown): boolean;
|
|
1549
|
+
static Wait(obj: unknown, millisecondsTimeout: int, exitContext: boolean): boolean;
|
|
1550
|
+
static Wait(obj: unknown, millisecondsTimeout: int): boolean;
|
|
1551
|
+
static Wait(obj: unknown, timeout: TimeSpan, exitContext: boolean): boolean;
|
|
1552
|
+
static Wait(obj: unknown, timeout: TimeSpan): boolean;
|
|
1553
|
+
static Wait(obj: unknown): boolean;
|
|
1554
1554
|
}
|
|
1555
1555
|
|
|
1556
1556
|
|
|
@@ -1595,23 +1595,23 @@ export abstract class ThreadPool$instance {
|
|
|
1595
1595
|
static GetAvailableThreads(workerThreads: int, completionPortThreads: int): void;
|
|
1596
1596
|
static GetMaxThreads(workerThreads: int, completionPortThreads: int): void;
|
|
1597
1597
|
static GetMinThreads(workerThreads: int, completionPortThreads: int): void;
|
|
1598
|
-
static QueueUserWorkItem<TState>(callBack: Action_1<TState>, state: TState, preferLocal: boolean): boolean;
|
|
1599
|
-
static QueueUserWorkItem(callBack: WaitCallback, state:
|
|
1598
|
+
static QueueUserWorkItem<TState extends unknown>(callBack: Action_1<TState>, state: TState, preferLocal: boolean): boolean;
|
|
1599
|
+
static QueueUserWorkItem(callBack: WaitCallback, state: unknown | null): boolean;
|
|
1600
1600
|
static QueueUserWorkItem(callBack: WaitCallback): boolean;
|
|
1601
|
-
static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state:
|
|
1602
|
-
static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state:
|
|
1603
|
-
static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state:
|
|
1604
|
-
static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state:
|
|
1601
|
+
static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | null, millisecondsTimeOutInterval: int, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1602
|
+
static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | null, millisecondsTimeOutInterval: long, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1603
|
+
static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | null, timeout: TimeSpan, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1604
|
+
static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | null, millisecondsTimeOutInterval: uint, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1605
1605
|
static SetMaxThreads(workerThreads: int, completionPortThreads: int): boolean;
|
|
1606
1606
|
static SetMinThreads(workerThreads: int, completionPortThreads: int): boolean;
|
|
1607
1607
|
static UnsafeQueueNativeOverlapped(overlapped: ptr<NativeOverlapped>): boolean;
|
|
1608
|
-
static UnsafeQueueUserWorkItem<TState>(callBack: Action_1<TState>, state: TState, preferLocal: boolean): boolean;
|
|
1608
|
+
static UnsafeQueueUserWorkItem<TState extends unknown>(callBack: Action_1<TState>, state: TState, preferLocal: boolean): boolean;
|
|
1609
1609
|
static UnsafeQueueUserWorkItem(callBack: IThreadPoolWorkItem, preferLocal: boolean): boolean;
|
|
1610
|
-
static UnsafeQueueUserWorkItem(callBack: WaitCallback, state:
|
|
1611
|
-
static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state:
|
|
1612
|
-
static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state:
|
|
1613
|
-
static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state:
|
|
1614
|
-
static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state:
|
|
1610
|
+
static UnsafeQueueUserWorkItem(callBack: WaitCallback, state: unknown | null): boolean;
|
|
1611
|
+
static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | null, millisecondsTimeOutInterval: int, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1612
|
+
static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | null, millisecondsTimeOutInterval: long, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1613
|
+
static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | null, timeout: TimeSpan, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1614
|
+
static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | null, millisecondsTimeOutInterval: uint, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1615
1615
|
}
|
|
1616
1616
|
|
|
1617
1617
|
|
|
@@ -1639,7 +1639,7 @@ export abstract class Volatile$instance {
|
|
|
1639
1639
|
static Read(location: uint): uint;
|
|
1640
1640
|
static Read(location: ulong): ulong;
|
|
1641
1641
|
static Read(location: nuint): nuint;
|
|
1642
|
-
static Read<T>(location: T): T;
|
|
1642
|
+
static Read<T extends (object | null)>(location: T): T;
|
|
1643
1643
|
static ReadBarrier(): void;
|
|
1644
1644
|
static Write(location: boolean, value: boolean): void;
|
|
1645
1645
|
static Write(location: byte, value: byte): void;
|
|
@@ -1654,7 +1654,7 @@ export abstract class Volatile$instance {
|
|
|
1654
1654
|
static Write(location: uint, value: uint): void;
|
|
1655
1655
|
static Write(location: ulong, value: ulong): void;
|
|
1656
1656
|
static Write(location: nuint, value: nuint): void;
|
|
1657
|
-
static Write<T>(location: T, value: T): void;
|
|
1657
|
+
static Write<T extends (object | null)>(location: T, value: T): void;
|
|
1658
1658
|
static WriteBarrier(): void;
|
|
1659
1659
|
}
|
|
1660
1660
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Assembly: System.Threading.Channels
|
|
4
4
|
|
|
5
5
|
// Core type aliases from @tsonic/core
|
|
6
|
-
import type {
|
|
6
|
+
import type { fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
// Import types from other namespaces
|
|
@@ -40,19 +40,19 @@ export const BoundedChannelOptions: {
|
|
|
40
40
|
|
|
41
41
|
export type BoundedChannelOptions = BoundedChannelOptions$instance;
|
|
42
42
|
|
|
43
|
-
export interface Channel_1$instance<T> extends Channel_2<T, T> {
|
|
43
|
+
export interface Channel_1$instance<T extends unknown> extends Channel_2<T, T> {
|
|
44
44
|
readonly __tsonic_type_System_Threading_Channels_Channel_1: never;
|
|
45
45
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
export const Channel_1: (abstract new<T>() => Channel_1<T>) & {
|
|
49
|
+
export const Channel_1: (abstract new<T extends unknown>() => Channel_1<T>) & {
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
|
|
53
|
-
export type Channel_1<T> = Channel_1$instance<T>;
|
|
53
|
+
export type Channel_1<T extends unknown> = Channel_1$instance<T>;
|
|
54
54
|
|
|
55
|
-
export interface Channel_2$instance<TWrite, TRead> {
|
|
55
|
+
export interface Channel_2$instance<TWrite extends unknown, TRead extends unknown> {
|
|
56
56
|
readonly __tsonic_type_System_Threading_Channels_Channel_2: never;
|
|
57
57
|
|
|
58
58
|
Reader: ChannelReader_1<TRead>;
|
|
@@ -60,11 +60,11 @@ export interface Channel_2$instance<TWrite, TRead> {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
|
|
63
|
-
export const Channel_2: (abstract new<TWrite, TRead>() => Channel_2<TWrite, TRead>) & {
|
|
63
|
+
export const Channel_2: (abstract new<TWrite extends unknown, TRead extends unknown>() => Channel_2<TWrite, TRead>) & {
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
|
|
67
|
-
export type Channel_2<TWrite, TRead> = Channel_2$instance<TWrite, TRead>;
|
|
67
|
+
export type Channel_2<TWrite extends unknown, TRead extends unknown> = Channel_2$instance<TWrite, TRead>;
|
|
68
68
|
|
|
69
69
|
export interface ChannelClosedException$instance extends InvalidOperationException, System_Runtime_Serialization_Internal.ISerializable$instance {
|
|
70
70
|
readonly __tsonic_type_System_Threading_Channels_ChannelClosedException: never;
|
|
@@ -104,7 +104,7 @@ export const ChannelOptions: (abstract new() => ChannelOptions) & {
|
|
|
104
104
|
|
|
105
105
|
export type ChannelOptions = ChannelOptions$instance;
|
|
106
106
|
|
|
107
|
-
export interface ChannelReader_1$instance<T> {
|
|
107
|
+
export interface ChannelReader_1$instance<T extends unknown> {
|
|
108
108
|
readonly __tsonic_type_System_Threading_Channels_ChannelReader_1: never;
|
|
109
109
|
|
|
110
110
|
readonly CanCount: boolean;
|
|
@@ -119,13 +119,13 @@ export interface ChannelReader_1$instance<T> {
|
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
|
|
122
|
-
export const ChannelReader_1: (abstract new<T>() => ChannelReader_1<T>) & {
|
|
122
|
+
export const ChannelReader_1: (abstract new<T extends unknown>() => ChannelReader_1<T>) & {
|
|
123
123
|
};
|
|
124
124
|
|
|
125
125
|
|
|
126
|
-
export type ChannelReader_1<T> = ChannelReader_1$instance<T>;
|
|
126
|
+
export type ChannelReader_1<T extends unknown> = ChannelReader_1$instance<T>;
|
|
127
127
|
|
|
128
|
-
export interface ChannelWriter_1$instance<T> {
|
|
128
|
+
export interface ChannelWriter_1$instance<T extends unknown> {
|
|
129
129
|
readonly __tsonic_type_System_Threading_Channels_ChannelWriter_1: never;
|
|
130
130
|
|
|
131
131
|
Complete(error?: Exception | null): void;
|
|
@@ -136,11 +136,11 @@ export interface ChannelWriter_1$instance<T> {
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
|
|
139
|
-
export const ChannelWriter_1: (abstract new<T>() => ChannelWriter_1<T>) & {
|
|
139
|
+
export const ChannelWriter_1: (abstract new<T extends unknown>() => ChannelWriter_1<T>) & {
|
|
140
140
|
};
|
|
141
141
|
|
|
142
142
|
|
|
143
|
-
export type ChannelWriter_1<T> = ChannelWriter_1$instance<T>;
|
|
143
|
+
export type ChannelWriter_1<T extends unknown> = ChannelWriter_1$instance<T>;
|
|
144
144
|
|
|
145
145
|
export interface UnboundedChannelOptions$instance extends ChannelOptions {
|
|
146
146
|
readonly __tsonic_type_System_Threading_Channels_UnboundedChannelOptions: never;
|
|
@@ -155,7 +155,7 @@ export const UnboundedChannelOptions: {
|
|
|
155
155
|
|
|
156
156
|
export type UnboundedChannelOptions = UnboundedChannelOptions$instance;
|
|
157
157
|
|
|
158
|
-
export interface UnboundedPrioritizedChannelOptions_1$instance<T> extends ChannelOptions {
|
|
158
|
+
export interface UnboundedPrioritizedChannelOptions_1$instance<T extends unknown> extends ChannelOptions {
|
|
159
159
|
readonly __tsonic_type_System_Threading_Channels_UnboundedPrioritizedChannelOptions_1: never;
|
|
160
160
|
|
|
161
161
|
get Comparer(): IComparer_1<T> | null;
|
|
@@ -164,20 +164,20 @@ export interface UnboundedPrioritizedChannelOptions_1$instance<T> extends Channe
|
|
|
164
164
|
|
|
165
165
|
|
|
166
166
|
export const UnboundedPrioritizedChannelOptions_1: {
|
|
167
|
-
new<T>(): UnboundedPrioritizedChannelOptions_1<T>;
|
|
167
|
+
new<T extends unknown>(): UnboundedPrioritizedChannelOptions_1<T>;
|
|
168
168
|
};
|
|
169
169
|
|
|
170
170
|
|
|
171
|
-
export type UnboundedPrioritizedChannelOptions_1<T> = UnboundedPrioritizedChannelOptions_1$instance<T>;
|
|
171
|
+
export type UnboundedPrioritizedChannelOptions_1<T extends unknown> = UnboundedPrioritizedChannelOptions_1$instance<T>;
|
|
172
172
|
|
|
173
173
|
export abstract class Channel$instance {
|
|
174
|
-
static CreateBounded<T>(capacity: int): Channel_1<T>;
|
|
175
|
-
static CreateBounded<T>(options: BoundedChannelOptions, itemDropped: Action_1<T> | null): Channel_1<T>;
|
|
176
|
-
static CreateBounded<T>(options: BoundedChannelOptions): Channel_1<T>;
|
|
177
|
-
static CreateUnbounded<T>(): Channel_1<T>;
|
|
178
|
-
static CreateUnbounded<T>(options: UnboundedChannelOptions): Channel_1<T>;
|
|
179
|
-
static CreateUnboundedPrioritized<T>(): Channel_1<T>;
|
|
180
|
-
static CreateUnboundedPrioritized<T>(options: UnboundedPrioritizedChannelOptions_1<T>): Channel_1<T>;
|
|
174
|
+
static CreateBounded<T extends unknown>(capacity: int): Channel_1<T>;
|
|
175
|
+
static CreateBounded<T extends unknown>(options: BoundedChannelOptions, itemDropped: Action_1<T> | null): Channel_1<T>;
|
|
176
|
+
static CreateBounded<T extends unknown>(options: BoundedChannelOptions): Channel_1<T>;
|
|
177
|
+
static CreateUnbounded<T extends unknown>(): Channel_1<T>;
|
|
178
|
+
static CreateUnbounded<T extends unknown>(options: UnboundedChannelOptions): Channel_1<T>;
|
|
179
|
+
static CreateUnboundedPrioritized<T extends unknown>(): Channel_1<T>;
|
|
180
|
+
static CreateUnboundedPrioritized<T extends unknown>(options: UnboundedPrioritizedChannelOptions_1<T>): Channel_1<T>;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
// Import internal declarations
|
|
6
6
|
import * as Internal from './System.Threading.Channels/internal/index.js';
|
|
7
7
|
|
|
8
|
+
// Core type aliases from @tsonic/core
|
|
9
|
+
import type { fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
10
|
+
|
|
11
|
+
|
|
8
12
|
// Cross-namespace type imports for constraints
|
|
9
13
|
import type { IAsyncEnumerable_1, IComparer_1 } from './System.Collections.Generic/internal/index.js';
|
|
10
14
|
import type { IDictionary } from './System.Collections/internal/index.js';
|
|
@@ -32,10 +36,10 @@ declare const __unspecified: unique symbol;
|
|
|
32
36
|
export type __ = typeof __unspecified;
|
|
33
37
|
|
|
34
38
|
export type Channel<
|
|
35
|
-
T1 = __,
|
|
36
|
-
T2 = __,
|
|
39
|
+
T1 extends unknown | __ = __,
|
|
40
|
+
T2 extends unknown | __ = __,
|
|
37
41
|
> =
|
|
38
42
|
[T1] extends [__] ? Internal.Channel :
|
|
39
|
-
[T2] extends [__] ? Internal.Channel_1<T1> :
|
|
40
|
-
Internal.Channel_2<T1, T2
|
|
43
|
+
[T2] extends [__] ? [T1] extends [unknown] ? Internal.Channel_1<T1> : never :
|
|
44
|
+
[T1] extends [unknown] ? [T2] extends [unknown] ? Internal.Channel_2<T1, T2> : never : never;
|
|
41
45
|
|