@tsonic/dotnet 10.0.40 → 10.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/Internal/internal/index.d.ts +4 -3
  2. package/Microsoft.CSharp.RuntimeBinder/internal/index.d.ts +19 -18
  3. package/Microsoft.VisualBasic/internal/index.d.ts +52 -54
  4. package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +117 -119
  5. package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +3 -2
  6. package/Microsoft.Win32/internal/index.d.ts +19 -18
  7. package/Microsoft.Win32.SafeHandles/internal/index.d.ts +3 -2
  8. package/README.md +76 -104
  9. package/System/bindings.json +1520 -2039
  10. package/System/internal/index.d.ts +1549 -1602
  11. package/System.Buffers/bindings.json +12 -3
  12. package/System.Buffers/internal/index.d.ts +12 -14
  13. package/System.Buffers.Binary/internal/index.d.ts +2 -4
  14. package/System.Buffers.Text/internal/index.d.ts +2 -4
  15. package/System.CodeDom.Compiler/internal/index.d.ts +32 -31
  16. package/System.Collections/internal/index.d.ts +129 -131
  17. package/System.Collections.Concurrent/bindings.json +218 -218
  18. package/System.Collections.Concurrent/internal/index.d.ts +34 -36
  19. package/System.Collections.Frozen/bindings.json +413 -611
  20. package/System.Collections.Frozen/internal/index.d.ts +81 -97
  21. package/System.Collections.Frozen.d.ts +14 -2
  22. package/System.Collections.Generic/bindings.json +9420 -14155
  23. package/System.Collections.Generic/internal/index.d.ts +547 -758
  24. package/System.Collections.Generic.d.ts +1 -1
  25. package/System.Collections.Immutable/bindings.json +6000 -9080
  26. package/System.Collections.Immutable/internal/index.d.ts +265 -354
  27. package/System.Collections.Immutable.d.ts +49 -12
  28. package/System.Collections.ObjectModel/bindings.json +132 -654
  29. package/System.Collections.ObjectModel/internal/index.d.ts +10 -30
  30. package/System.Collections.Specialized/bindings.json +0 -123
  31. package/System.Collections.Specialized/internal/index.d.ts +88 -101
  32. package/System.ComponentModel/bindings.json +163 -102
  33. package/System.ComponentModel/internal/index.d.ts +618 -608
  34. package/System.ComponentModel.DataAnnotations/internal/index.d.ts +133 -132
  35. package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +8 -7
  36. package/System.ComponentModel.Design/bindings.json +22 -292
  37. package/System.ComponentModel.Design/internal/index.d.ts +101 -109
  38. package/System.ComponentModel.Design.Serialization/internal/index.d.ts +61 -60
  39. package/System.ComponentModel.d.ts +1 -0
  40. package/System.Configuration.Assemblies/internal/index.d.ts +3 -2
  41. package/System.Data/bindings.json +4 -1
  42. package/System.Data/internal/index.d.ts +351 -350
  43. package/System.Data.Common/internal/index.d.ts +151 -152
  44. package/System.Data.SqlTypes/internal/index.d.ts +68 -67
  45. package/System.Diagnostics/bindings.json +7044 -7249
  46. package/System.Diagnostics/internal/index.d.ts +446 -461
  47. package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +44 -43
  48. package/System.Diagnostics.Contracts/internal/index.d.ts +16 -18
  49. package/System.Diagnostics.Metrics/internal/index.d.ts +92 -94
  50. package/System.Diagnostics.Metrics.d.ts +1 -1
  51. package/System.Diagnostics.SymbolStore/internal/index.d.ts +12 -11
  52. package/System.Diagnostics.Tracing/bindings.json +81 -21
  53. package/System.Diagnostics.Tracing/internal/index.d.ts +69 -56
  54. package/System.Diagnostics.Tracing.d.ts +2 -1
  55. package/System.Drawing/internal/index.d.ts +76 -75
  56. package/System.Dynamic/internal/index.d.ts +55 -57
  57. package/System.Formats.Asn1/bindings.json +48 -69
  58. package/System.Formats.Asn1/internal/index.d.ts +21 -28
  59. package/System.Formats.Tar/internal/index.d.ts +8 -7
  60. package/System.Globalization/internal/index.d.ts +40 -42
  61. package/System.IO/internal/index.d.ts +187 -189
  62. package/System.IO.Compression/internal/index.d.ts +29 -31
  63. package/System.IO.Enumeration/bindings.json +250 -250
  64. package/System.IO.Enumeration/internal/index.d.ts +15 -17
  65. package/System.IO.IsolatedStorage/internal/index.d.ts +19 -18
  66. package/System.IO.MemoryMappedFiles/internal/index.d.ts +11 -10
  67. package/System.IO.Pipelines/internal/index.d.ts +15 -17
  68. package/System.IO.Pipes/internal/index.d.ts +8 -7
  69. package/System.Linq/internal/index.d.ts +223 -225
  70. package/System.Linq.Expressions/internal/index.d.ts +205 -207
  71. package/System.Linq.Expressions.Interpreter/internal/index.d.ts +5 -4
  72. package/System.Net/bindings.json +104 -104
  73. package/System.Net/internal/index.d.ts +279 -281
  74. package/System.Net.Cache/internal/index.d.ts +3 -2
  75. package/System.Net.Http/internal/index.d.ts +128 -130
  76. package/System.Net.Http.Headers/bindings.json +0 -204
  77. package/System.Net.Http.Headers/internal/index.d.ts +111 -127
  78. package/System.Net.Http.Json/internal/index.d.ts +67 -69
  79. package/System.Net.Http.Metrics/internal/index.d.ts +6 -5
  80. package/System.Net.Mail/internal/index.d.ts +76 -78
  81. package/System.Net.Mime/internal/index.d.ts +11 -10
  82. package/System.Net.NetworkInformation/internal/index.d.ts +30 -32
  83. package/System.Net.Quic/internal/index.d.ts +10 -9
  84. package/System.Net.Security/internal/index.d.ts +87 -89
  85. package/System.Net.ServerSentEvents/internal/index.d.ts +6 -5
  86. package/System.Net.Sockets/internal/index.d.ts +91 -93
  87. package/System.Net.WebSockets/internal/index.d.ts +47 -46
  88. package/System.Numerics/bindings.json +544 -116
  89. package/System.Numerics/internal/index.d.ts +110 -112
  90. package/System.Reflection/internal/index.d.ts +270 -272
  91. package/System.Reflection.Emit/internal/index.d.ts +114 -116
  92. package/System.Reflection.Metadata/bindings.json +166 -3169
  93. package/System.Reflection.Metadata/internal/index.d.ts +154 -361
  94. package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +13 -15
  95. package/System.Reflection.PortableExecutable/bindings.json +58 -0
  96. package/System.Reflection.PortableExecutable/internal/index.d.ts +24 -11
  97. package/System.Reflection.PortableExecutable.d.ts +1 -0
  98. package/System.Resources/internal/index.d.ts +33 -35
  99. package/System.Runtime/internal/index.d.ts +12 -11
  100. package/System.Runtime.CompilerServices/bindings.json +519 -717
  101. package/System.Runtime.CompilerServices/internal/index.d.ts +113 -137
  102. package/System.Runtime.CompilerServices.d.ts +14 -4
  103. package/System.Runtime.ConstrainedExecution/internal/index.d.ts +3 -2
  104. package/System.Runtime.ExceptionServices/internal/index.d.ts +4 -3
  105. package/System.Runtime.InteropServices/bindings.json +101 -101
  106. package/System.Runtime.InteropServices/internal/index.d.ts +234 -236
  107. package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +34 -36
  108. package/System.Runtime.InteropServices.Java/internal/index.d.ts +4 -6
  109. package/System.Runtime.InteropServices.JavaScript/bindings.json +328 -328
  110. package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +67 -69
  111. package/System.Runtime.InteropServices.JavaScript.d.ts +8 -26
  112. package/System.Runtime.InteropServices.Marshalling/bindings.json +2619 -2619
  113. package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +308 -310
  114. package/System.Runtime.InteropServices.ObjectiveC/bindings.json +141 -141
  115. package/System.Runtime.InteropServices.ObjectiveC/internal/index.d.ts +17 -19
  116. package/System.Runtime.InteropServices.Swift/internal/index.d.ts +4 -6
  117. package/System.Runtime.InteropServices.Swift.d.ts +1 -1
  118. package/System.Runtime.Intrinsics/bindings.json +64 -16
  119. package/System.Runtime.Intrinsics/internal/index.d.ts +22 -24
  120. package/System.Runtime.Intrinsics.Arm/internal/index.d.ts +12 -13
  121. package/System.Runtime.Intrinsics.Wasm/internal/index.d.ts +2 -4
  122. package/System.Runtime.Intrinsics.X86/internal/index.d.ts +42 -41
  123. package/System.Runtime.Loader/bindings.json +48 -69
  124. package/System.Runtime.Loader/internal/index.d.ts +30 -34
  125. package/System.Runtime.Remoting/internal/index.d.ts +5 -4
  126. package/System.Runtime.Serialization/internal/index.d.ts +175 -177
  127. package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +29 -31
  128. package/System.Runtime.Serialization.Formatters/internal/index.d.ts +7 -6
  129. package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +10 -9
  130. package/System.Runtime.Serialization.Json/internal/index.d.ts +37 -36
  131. package/System.Runtime.Versioning/internal/index.d.ts +20 -19
  132. package/System.Security/internal/index.d.ts +64 -66
  133. package/System.Security.AccessControl/bindings.json +104 -0
  134. package/System.Security.AccessControl/internal/index.d.ts +59 -58
  135. package/System.Security.AccessControl.d.ts +6 -5
  136. package/System.Security.Authentication/internal/index.d.ts +7 -6
  137. package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +12 -11
  138. package/System.Security.Claims/internal/index.d.ts +45 -44
  139. package/System.Security.Cryptography/bindings.json +469 -469
  140. package/System.Security.Cryptography/internal/index.d.ts +269 -271
  141. package/System.Security.Cryptography.X509Certificates/bindings.json +0 -62
  142. package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +98 -105
  143. package/System.Security.Permissions/internal/index.d.ts +5 -4
  144. package/System.Security.Policy/internal/index.d.ts +11 -10
  145. package/System.Security.Principal/internal/index.d.ts +28 -27
  146. package/System.Text/bindings.json +1562 -1562
  147. package/System.Text/internal/index.d.ts +119 -121
  148. package/System.Text.Encodings.Web/internal/index.d.ts +2 -4
  149. package/System.Text.Json/bindings.json +0 -290
  150. package/System.Text.Json/internal/index.d.ts +135 -153
  151. package/System.Text.Json.Nodes/internal/index.d.ts +60 -62
  152. package/System.Text.Json.Schema/internal/index.d.ts +9 -8
  153. package/System.Text.Json.Serialization/internal/index.d.ts +32 -34
  154. package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +86 -85
  155. package/System.Text.Json.Serialization.d.ts +1 -1
  156. package/System.Text.RegularExpressions/bindings.json +198 -402
  157. package/System.Text.RegularExpressions/internal/index.d.ts +48 -64
  158. package/System.Text.Unicode/bindings.json +508 -508
  159. package/System.Text.Unicode/internal/index.d.ts +29 -31
  160. package/System.Threading/bindings.json +42 -42
  161. package/System.Threading/internal/index.d.ts +157 -159
  162. package/System.Threading.Channels/internal/index.d.ts +10 -12
  163. package/System.Threading.Tasks/bindings.json +4 -1
  164. package/System.Threading.Tasks/internal/index.d.ts +115 -114
  165. package/System.Threading.Tasks.Dataflow/internal/index.d.ts +32 -33
  166. package/System.Threading.Tasks.Sources/internal/index.d.ts +6 -5
  167. package/System.Timers/internal/index.d.ts +8 -7
  168. package/System.Transactions/internal/index.d.ts +31 -30
  169. package/System.Web/internal/index.d.ts +32 -31
  170. package/System.Windows.Input/internal/index.d.ts +5 -4
  171. package/System.Windows.Markup/internal/index.d.ts +3 -2
  172. package/System.Xml/internal/index.d.ts +383 -385
  173. package/System.Xml.Linq/internal/index.d.ts +103 -102
  174. package/System.Xml.Resolvers/internal/index.d.ts +10 -9
  175. package/System.Xml.Schema/bindings.json +76 -76
  176. package/System.Xml.Schema/internal/index.d.ts +233 -232
  177. package/System.Xml.Serialization/bindings.json +193 -0
  178. package/System.Xml.Serialization/internal/index.d.ts +277 -245
  179. package/System.Xml.Serialization.d.ts +2 -0
  180. package/System.Xml.XPath/internal/index.d.ts +46 -45
  181. package/System.Xml.Xsl/internal/index.d.ts +53 -52
  182. package/System.Xml.Xsl.Runtime/bindings.json +4 -1
  183. package/System.Xml.Xsl.Runtime/internal/index.d.ts +35 -37
  184. package/System.d.ts +2 -2
  185. package/__internal/extensions/index.d.ts +517 -515
  186. package/families.json +63 -7
  187. package/package.json +2 -2
@@ -2,11 +2,9 @@
2
2
  // Namespace: System.IO.Enumeration
3
3
  // Assembly: System.Private.CoreLib
4
4
 
5
- // Primitive type aliases from @tsonic/core
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
5
+ // Core type aliases from @tsonic/core
6
+ import type { JsValue, fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
7
7
 
8
- // Import support types from @tsonic/core
9
- import type { ptr } from "@tsonic/core/types.js";
10
8
 
11
9
  // Import types from other namespaces
12
10
  import * as System_Collections_Generic_Internal from "../../System.Collections.Generic/internal/index.js";
@@ -22,12 +20,6 @@ import type { ISerializable, SerializationInfo, StreamingContext } from "../../S
22
20
  import * as System_Internal from "../../System/internal/index.js";
23
21
  import type { AsyncCallback, Boolean as ClrBoolean, Char, DateTimeOffset, Delegate, IAsyncResult, ICloneable, IDisposable, Int32, Int64, IntPtr, MulticastDelegate, Object as ClrObject, ReadOnlySpan_1, String as ClrString, Type, ValueType, Void } from "../../System/internal/index.js";
24
22
 
25
- export type FileSystemEnumerable_1_FindPredicate<TResult> = (entry: FileSystemEntry) => boolean;
26
-
27
-
28
- export type FileSystemEnumerable_1_FindTransform<TResult> = (entry: FileSystemEntry) => TResult;
29
-
30
-
31
23
  export interface FileSystemEntry$instance {
32
24
  readonly __tsonic_type_System_IO_Enumeration_FileSystemEntry: never;
33
25
 
@@ -61,16 +53,16 @@ export interface FileSystemEnumerable_1$instance<TResult> {
61
53
  readonly __tsonic_iface_System_Collections_Generic_IEnumerable_1: never;
62
54
  readonly __tsonic_iface_System_Collections_IEnumerable: never;
63
55
 
64
- get ShouldIncludePredicate(): FileSystemEnumerable_1_FindPredicate<TResult> | undefined;
65
- set ShouldIncludePredicate(value: FileSystemEnumerable_1_FindPredicate<TResult> | undefined);
66
- get ShouldRecursePredicate(): FileSystemEnumerable_1_FindPredicate<TResult> | undefined;
67
- set ShouldRecursePredicate(value: FileSystemEnumerable_1_FindPredicate<TResult> | undefined);
56
+ get ShouldIncludePredicate(): FileSystemEnumerable_1_FindPredicate<TResult> | null;
57
+ set ShouldIncludePredicate(value: FileSystemEnumerable_1_FindPredicate<TResult> | null);
58
+ get ShouldRecursePredicate(): FileSystemEnumerable_1_FindPredicate<TResult> | null;
59
+ set ShouldRecursePredicate(value: FileSystemEnumerable_1_FindPredicate<TResult> | null);
68
60
  GetEnumerator(): IEnumerator_1<TResult>;
69
61
  }
70
62
 
71
63
 
72
64
  export const FileSystemEnumerable_1: {
73
- new<TResult>(directory: string, transform: FileSystemEnumerable_1_FindTransform<TResult>, options: EnumerationOptions): FileSystemEnumerable_1<TResult>;
65
+ new<TResult>(directory: string, transform: FileSystemEnumerable_1_FindTransform<TResult>, options: EnumerationOptions | null): FileSystemEnumerable_1<TResult>;
74
66
  };
75
67
 
76
68
 
@@ -82,6 +74,12 @@ export interface __FileSystemEnumerable_1$views<TResult> {
82
74
  export type FileSystemEnumerable_1<TResult> = FileSystemEnumerable_1$instance<TResult> & __FileSystemEnumerable_1$views<TResult>;
83
75
 
84
76
 
77
+ export type FileSystemEnumerable_1_FindPredicate<TResult> = (entry: FileSystemEntry) => boolean;
78
+
79
+
80
+ export type FileSystemEnumerable_1_FindTransform<TResult> = (entry: FileSystemEntry) => TResult;
81
+
82
+
85
83
  export interface FileSystemEnumerator_1$instance<TResult> extends CriticalFinalizerObject, IDisposable {
86
84
  readonly __tsonic_type_System_IO_Enumeration_FileSystemEnumerator_1: never;
87
85
 
@@ -103,7 +101,7 @@ export interface FileSystemEnumerator_1$instance<TResult> extends CriticalFinali
103
101
  }
104
102
 
105
103
 
106
- export const FileSystemEnumerator_1: (abstract new<TResult>(directory: string, options: EnumerationOptions) => FileSystemEnumerator_1<TResult>) & {
104
+ export const FileSystemEnumerator_1: (abstract new<TResult>(directory: string, options: EnumerationOptions | null) => FileSystemEnumerator_1<TResult>) & {
107
105
  };
108
106
 
109
107
 
@@ -118,7 +116,7 @@ export type FileSystemEnumerator_1<TResult> = FileSystemEnumerator_1$instance<TR
118
116
  export abstract class FileSystemName$instance {
119
117
  static MatchesSimpleExpression(expression: ReadOnlySpan_1<System_Internal.Char>, name: ReadOnlySpan_1<System_Internal.Char>, ignoreCase?: boolean): boolean;
120
118
  static MatchesWin32Expression(expression: ReadOnlySpan_1<System_Internal.Char>, name: ReadOnlySpan_1<System_Internal.Char>, ignoreCase?: boolean): boolean;
121
- static TranslateWin32Expression(expression: string): string;
119
+ static TranslateWin32Expression(expression: string | null): string;
122
120
  }
123
121
 
124
122
 
@@ -2,8 +2,9 @@
2
2
  // Namespace: System.IO.IsolatedStorage
3
3
  // Assembly: System.IO.IsolatedStorage
4
4
 
5
- // Primitive type aliases from @tsonic/core
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
5
+ // Core type aliases from @tsonic/core
6
+ import type { JsValue, fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
7
+
7
8
 
8
9
  // Import types from other namespaces
9
10
  import type { SafeFileHandle } from "../../Microsoft.Win32.SafeHandles/internal/index.js";
@@ -32,7 +33,7 @@ export enum IsolatedStorageScope {
32
33
  export interface INormalizeForIsolatedStorage$instance {
33
34
  readonly __tsonic_iface_System_IO_IsolatedStorage_INormalizeForIsolatedStorage: never;
34
35
 
35
- Normalize(): unknown;
36
+ Normalize(): JsValue;
36
37
  }
37
38
 
38
39
 
@@ -41,11 +42,11 @@ export type INormalizeForIsolatedStorage = INormalizeForIsolatedStorage$instance
41
42
  export interface IsolatedStorage$instance extends MarshalByRefObject {
42
43
  readonly __tsonic_type_System_IO_IsolatedStorage_IsolatedStorage: never;
43
44
 
44
- readonly ApplicationIdentity: unknown;
45
- readonly AssemblyIdentity: unknown;
45
+ readonly ApplicationIdentity: JsValue;
46
+ readonly AssemblyIdentity: JsValue;
46
47
  readonly AvailableFreeSpace: long;
47
48
  readonly CurrentSize: ulong;
48
- readonly DomainIdentity: unknown;
49
+ readonly DomainIdentity: JsValue;
49
50
  readonly MaximumSize: ulong;
50
51
  readonly Quota: long;
51
52
  Scope: IsolatedStorageScope;
@@ -73,8 +74,8 @@ export interface IsolatedStorageException$instance extends Exception, System_Run
73
74
 
74
75
  export const IsolatedStorageException: {
75
76
  new(): IsolatedStorageException;
76
- new(message: string): IsolatedStorageException;
77
- new(message: string, inner: Exception): IsolatedStorageException;
77
+ new(message: string | null): IsolatedStorageException;
78
+ new(message: string | null, inner: Exception | null): IsolatedStorageException;
78
79
  };
79
80
 
80
81
 
@@ -128,10 +129,10 @@ export const IsolatedStorageFile: {
128
129
  GetMachineStoreForApplication(): IsolatedStorageFile;
129
130
  GetMachineStoreForAssembly(): IsolatedStorageFile;
130
131
  GetMachineStoreForDomain(): IsolatedStorageFile;
131
- GetStore(scope: IsolatedStorageScope, domainIdentity: unknown, assemblyIdentity: unknown): IsolatedStorageFile;
132
- GetStore(scope: IsolatedStorageScope, applicationIdentity: unknown): IsolatedStorageFile;
133
- GetStore(scope: IsolatedStorageScope, domainEvidenceType: Type, assemblyEvidenceType: Type): IsolatedStorageFile;
134
- GetStore(scope: IsolatedStorageScope, applicationEvidenceType: Type): IsolatedStorageFile;
132
+ GetStore(scope: IsolatedStorageScope, domainIdentity: JsValue | null, assemblyIdentity: JsValue | null): IsolatedStorageFile;
133
+ GetStore(scope: IsolatedStorageScope, applicationIdentity: JsValue | null): IsolatedStorageFile;
134
+ GetStore(scope: IsolatedStorageScope, domainEvidenceType: Type | null, assemblyEvidenceType: Type | null): IsolatedStorageFile;
135
+ GetStore(scope: IsolatedStorageScope, applicationEvidenceType: Type | null): IsolatedStorageFile;
135
136
  GetUserStoreForApplication(): IsolatedStorageFile;
136
137
  GetUserStoreForAssembly(): IsolatedStorageFile;
137
138
  GetUserStoreForDomain(): IsolatedStorageFile;
@@ -161,8 +162,8 @@ export interface IsolatedStorageFileStream$instance extends FileStream {
161
162
  readonly Length: long;
162
163
  Position: long;
163
164
  readonly SafeFileHandle: SafeFileHandle;
164
- BeginRead(array: byte[], offset: int, numBytes: int, userCallback: AsyncCallback, stateObject: unknown): IAsyncResult;
165
- BeginWrite(array: byte[], offset: int, numBytes: int, userCallback: AsyncCallback, stateObject: unknown): IAsyncResult;
165
+ BeginRead(array: byte[], offset: int, numBytes: int, userCallback: AsyncCallback | null, stateObject: JsValue | null): IAsyncResult;
166
+ BeginWrite(array: byte[], offset: int, numBytes: int, userCallback: AsyncCallback | null, stateObject: JsValue | null): IAsyncResult;
166
167
  Dispose(disposing: boolean): void;
167
168
  Dispose(): void;
168
169
  DisposeAsync(): ValueTask;
@@ -195,13 +196,13 @@ export interface IsolatedStorageFileStream$instance extends FileStream {
195
196
 
196
197
  export const IsolatedStorageFileStream: {
197
198
  new(path: string, mode: FileMode): IsolatedStorageFileStream;
198
- new(path: string, mode: FileMode, isf: IsolatedStorageFile): IsolatedStorageFileStream;
199
+ new(path: string, mode: FileMode, isf: IsolatedStorageFile | null): IsolatedStorageFileStream;
199
200
  new(path: string, mode: FileMode, access: FileAccess): IsolatedStorageFileStream;
200
- new(path: string, mode: FileMode, access: FileAccess, isf: IsolatedStorageFile): IsolatedStorageFileStream;
201
+ new(path: string, mode: FileMode, access: FileAccess, isf: IsolatedStorageFile | null): IsolatedStorageFileStream;
201
202
  new(path: string, mode: FileMode, access: FileAccess, share: FileShare): IsolatedStorageFileStream;
202
- new(path: string, mode: FileMode, access: FileAccess, share: FileShare, isf: IsolatedStorageFile): IsolatedStorageFileStream;
203
+ new(path: string, mode: FileMode, access: FileAccess, share: FileShare, isf: IsolatedStorageFile | null): IsolatedStorageFileStream;
203
204
  new(path: string, mode: FileMode, access: FileAccess, share: FileShare, bufferSize: int): IsolatedStorageFileStream;
204
- new(path: string, mode: FileMode, access: FileAccess, share: FileShare, bufferSize: int, isf: IsolatedStorageFile): IsolatedStorageFileStream;
205
+ new(path: string, mode: FileMode, access: FileAccess, share: FileShare, bufferSize: int, isf: IsolatedStorageFile | null): IsolatedStorageFileStream;
205
206
  };
206
207
 
207
208
 
@@ -2,8 +2,9 @@
2
2
  // Namespace: System.IO.MemoryMappedFiles
3
3
  // Assembly: System.IO.MemoryMappedFiles
4
4
 
5
- // Primitive type aliases from @tsonic/core
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
5
+ // Core type aliases from @tsonic/core
6
+ import type { JsValue, fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
7
+
7
8
 
8
9
  // Import types from other namespaces
9
10
  import type { SafeFileHandle, SafeMemoryMappedFileHandle, SafeMemoryMappedViewHandle } from "../../Microsoft.Win32.SafeHandles/internal/index.js";
@@ -66,16 +67,16 @@ export interface MemoryMappedFile$instance {
66
67
 
67
68
 
68
69
  export const MemoryMappedFile: {
69
- CreateFromFile(fileHandle: SafeFileHandle, mapName: string, capacity: long, access: MemoryMappedFileAccess, inheritability: HandleInheritability, leaveOpen: boolean): MemoryMappedFile;
70
- CreateFromFile(fileStream: FileStream, mapName: string, capacity: long, access: MemoryMappedFileAccess, inheritability: HandleInheritability, leaveOpen: boolean): MemoryMappedFile;
71
- CreateFromFile(path: string, mode: FileMode, mapName: string, capacity: long, access: MemoryMappedFileAccess): MemoryMappedFile;
72
- CreateFromFile(path: string, mode: FileMode, mapName: string, capacity: long): MemoryMappedFile;
73
- CreateFromFile(path: string, mode: FileMode, mapName: string): MemoryMappedFile;
70
+ CreateFromFile(fileHandle: SafeFileHandle, mapName: string | null, capacity: long, access: MemoryMappedFileAccess, inheritability: HandleInheritability, leaveOpen: boolean): MemoryMappedFile;
71
+ CreateFromFile(fileStream: FileStream, mapName: string | null, capacity: long, access: MemoryMappedFileAccess, inheritability: HandleInheritability, leaveOpen: boolean): MemoryMappedFile;
72
+ CreateFromFile(path: string, mode: FileMode, mapName: string | null, capacity: long, access: MemoryMappedFileAccess): MemoryMappedFile;
73
+ CreateFromFile(path: string, mode: FileMode, mapName: string | null, capacity: long): MemoryMappedFile;
74
+ CreateFromFile(path: string, mode: FileMode, mapName: string | null): MemoryMappedFile;
74
75
  CreateFromFile(path: string, mode: FileMode): MemoryMappedFile;
75
76
  CreateFromFile(path: string): MemoryMappedFile;
76
- CreateNew(mapName: string, capacity: long, access: MemoryMappedFileAccess, options: MemoryMappedFileOptions, inheritability: HandleInheritability): MemoryMappedFile;
77
- CreateNew(mapName: string, capacity: long, access: MemoryMappedFileAccess): MemoryMappedFile;
78
- CreateNew(mapName: string, capacity: long): MemoryMappedFile;
77
+ CreateNew(mapName: string | null, capacity: long, access: MemoryMappedFileAccess, options: MemoryMappedFileOptions, inheritability: HandleInheritability): MemoryMappedFile;
78
+ CreateNew(mapName: string | null, capacity: long, access: MemoryMappedFileAccess): MemoryMappedFile;
79
+ CreateNew(mapName: string | null, capacity: long): MemoryMappedFile;
79
80
  CreateOrOpen(mapName: string, capacity: long, access: MemoryMappedFileAccess, options: MemoryMappedFileOptions, inheritability: HandleInheritability): MemoryMappedFile;
80
81
  CreateOrOpen(mapName: string, capacity: long, access: MemoryMappedFileAccess): MemoryMappedFile;
81
82
  CreateOrOpen(mapName: string, capacity: long): MemoryMappedFile;
@@ -2,11 +2,9 @@
2
2
  // Namespace: System.IO.Pipelines
3
3
  // Assembly: System.IO.Pipelines
4
4
 
5
- // Primitive type aliases from @tsonic/core
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
5
+ // Core type aliases from @tsonic/core
6
+ import type { JsValue, fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
7
7
 
8
- // Import support types from @tsonic/core
9
- import type { ptr } from "@tsonic/core/types.js";
10
8
 
11
9
  // Import types from other namespaces
12
10
  import * as System_Buffers_Internal from "../../System.Buffers/internal/index.js";
@@ -89,7 +87,7 @@ export interface PipeOptions$instance {
89
87
 
90
88
 
91
89
  export const PipeOptions: {
92
- new(pool: MemoryPool_1<System_Internal.Byte>, readerScheduler: PipeScheduler, writerScheduler: PipeScheduler, pauseWriterThreshold: long, resumeWriterThreshold: long, minimumSegmentSize: int, useSynchronizationContext: boolean): PipeOptions;
90
+ new(pool: MemoryPool_1<System_Internal.Byte> | null, readerScheduler: PipeScheduler | null, writerScheduler: PipeScheduler | null, pauseWriterThreshold: long, resumeWriterThreshold: long, minimumSegmentSize: int, useSynchronizationContext: boolean): PipeOptions;
93
91
  readonly Default: PipeOptions;
94
92
  };
95
93
 
@@ -103,11 +101,11 @@ export interface PipeReader$instance {
103
101
  AdvanceTo(consumed: SequencePosition, examined: SequencePosition): void;
104
102
  AsStream(leaveOpen?: boolean): Stream;
105
103
  CancelPendingRead(): void;
106
- Complete(exception?: Exception): void;
107
- CompleteAsync(exception?: Exception): ValueTask;
104
+ Complete(exception?: Exception | null): void;
105
+ CompleteAsync(exception?: Exception | null): ValueTask;
108
106
  CopyToAsync(destination: PipeWriter, cancellationToken?: CancellationToken): Task;
109
107
  CopyToAsync(destination: Stream, cancellationToken?: CancellationToken): Task;
110
- OnWriterCompleted(callback: Action_2<Exception, unknown>, state: unknown): void;
108
+ OnWriterCompleted(callback: Action_2<Exception | null, JsValue | null>, state: JsValue | null): void;
111
109
  ReadAsync(cancellationToken?: CancellationToken): ValueTask_1<ReadResult>;
112
110
  ReadAtLeastAsync(minimumSize: int, cancellationToken?: CancellationToken): ValueTask_1<ReadResult>;
113
111
  ReadAtLeastAsyncCore(minimumSize: int, cancellationToken: CancellationToken): ValueTask_1<ReadResult>;
@@ -117,7 +115,7 @@ export interface PipeReader$instance {
117
115
 
118
116
  export const PipeReader: (abstract new() => PipeReader) & {
119
117
  Create(sequence: ReadOnlySequence_1<System_Internal.Byte>): PipeReader;
120
- Create(stream: Stream, readerOptions?: StreamPipeReaderOptions): PipeReader;
118
+ Create(stream: Stream, readerOptions?: StreamPipeReaderOptions | null): PipeReader;
121
119
  };
122
120
 
123
121
 
@@ -126,7 +124,7 @@ export type PipeReader = PipeReader$instance;
126
124
  export interface PipeScheduler$instance {
127
125
  readonly __tsonic_type_System_IO_Pipelines_PipeScheduler: never;
128
126
 
129
- Schedule(action: Action_1<unknown>, state: unknown): void;
127
+ Schedule(action: Action_1<JsValue | null>, state: JsValue | null): void;
130
128
  }
131
129
 
132
130
 
@@ -148,19 +146,19 @@ export interface PipeWriter$instance extends System_Buffers_Internal.IBufferWrit
148
146
  Advance(bytes: int): void;
149
147
  AsStream(leaveOpen?: boolean): Stream;
150
148
  CancelPendingFlush(): void;
151
- Complete(exception?: Exception): void;
152
- CompleteAsync(exception?: Exception): ValueTask;
149
+ Complete(exception?: Exception | null): void;
150
+ CompleteAsync(exception?: Exception | null): ValueTask;
153
151
  CopyFromAsync(source: Stream, cancellationToken?: CancellationToken): Task;
154
152
  FlushAsync(cancellationToken?: CancellationToken): ValueTask_1<FlushResult>;
155
153
  GetMemory(sizeHint?: int): Memory_1<System_Internal.Byte>;
156
154
  GetSpan(sizeHint?: int): Span_1<System_Internal.Byte>;
157
- OnReaderCompleted(callback: Action_2<Exception, unknown>, state: unknown): void;
155
+ OnReaderCompleted(callback: Action_2<Exception | null, JsValue | null>, state: JsValue | null): void;
158
156
  WriteAsync(source: ReadOnlyMemory_1<System_Internal.Byte>, cancellationToken?: CancellationToken): ValueTask_1<FlushResult>;
159
157
  }
160
158
 
161
159
 
162
160
  export const PipeWriter: (abstract new() => PipeWriter) & {
163
- Create(stream: Stream, writerOptions?: StreamPipeWriterOptions): PipeWriter;
161
+ Create(stream: Stream, writerOptions?: StreamPipeWriterOptions | null): PipeWriter;
164
162
  };
165
163
 
166
164
 
@@ -183,8 +181,8 @@ export interface StreamPipeReaderOptions$instance {
183
181
 
184
182
 
185
183
  export const StreamPipeReaderOptions: {
186
- new(pool: MemoryPool_1<System_Internal.Byte>, bufferSize: int, minimumReadSize: int, leaveOpen: boolean): StreamPipeReaderOptions;
187
- new(pool: MemoryPool_1<System_Internal.Byte>, bufferSize: int, minimumReadSize: int, leaveOpen: boolean, useZeroByteReads: boolean): StreamPipeReaderOptions;
184
+ new(pool: MemoryPool_1<System_Internal.Byte> | null, bufferSize: int, minimumReadSize: int, leaveOpen: boolean): StreamPipeReaderOptions;
185
+ new(pool: MemoryPool_1<System_Internal.Byte> | null, bufferSize: int, minimumReadSize: int, leaveOpen: boolean, useZeroByteReads: boolean): StreamPipeReaderOptions;
188
186
  };
189
187
 
190
188
 
@@ -200,7 +198,7 @@ export interface StreamPipeWriterOptions$instance {
200
198
 
201
199
 
202
200
  export const StreamPipeWriterOptions: {
203
- new(pool: MemoryPool_1<System_Internal.Byte>, minimumBufferSize: int, leaveOpen: boolean): StreamPipeWriterOptions;
201
+ new(pool: MemoryPool_1<System_Internal.Byte> | null, minimumBufferSize: int, leaveOpen: boolean): StreamPipeWriterOptions;
204
202
  };
205
203
 
206
204
 
@@ -2,8 +2,9 @@
2
2
  // Namespace: System.IO.Pipes
3
3
  // Assembly: System.IO.Pipes, System.IO.Pipes.AccessControl
4
4
 
5
- // Primitive type aliases from @tsonic/core
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
5
+ // Core type aliases from @tsonic/core
6
+ import type { JsValue, fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
7
+
7
8
 
8
9
  // Import types from other namespaces
9
10
  import type { SafePipeHandle } from "../../Microsoft.Win32.SafeHandles/internal/index.js";
@@ -178,7 +179,7 @@ export interface NamedPipeServerStream$instance extends PipeStream$instance, Sys
178
179
 
179
180
  readonly InBufferSize: int;
180
181
  readonly OutBufferSize: int;
181
- BeginWaitForConnection(callback: AsyncCallback, state: unknown): IAsyncResult;
182
+ BeginWaitForConnection(callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
182
183
  Disconnect(): void;
183
184
  EndWaitForConnection(asyncResult: IAsyncResult): void;
184
185
  Finalize(): void;
@@ -290,8 +291,8 @@ export interface PipeStream$instance extends Stream, System_Internal.IAsyncDispo
290
291
  ReadMode: PipeTransmissionMode;
291
292
  readonly SafePipeHandle: SafePipeHandle;
292
293
  readonly TransmissionMode: PipeTransmissionMode;
293
- BeginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
294
- BeginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
294
+ BeginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
295
+ BeginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
295
296
  CheckPipePropertyOperations(): void;
296
297
  Dispose(disposing: boolean): void;
297
298
  Dispose(): void;
@@ -331,14 +332,14 @@ export type PipeStream = PipeStream$instance & __PipeStream$views;
331
332
 
332
333
 
333
334
  export abstract class AnonymousPipeServerStreamAcl$instance {
334
- static Create(direction: PipeDirection, inheritability: HandleInheritability, bufferSize: int, pipeSecurity: PipeSecurity): AnonymousPipeServerStream;
335
+ static Create(direction: PipeDirection, inheritability: HandleInheritability, bufferSize: int, pipeSecurity: PipeSecurity | null): AnonymousPipeServerStream;
335
336
  }
336
337
 
337
338
 
338
339
  export type AnonymousPipeServerStreamAcl = AnonymousPipeServerStreamAcl$instance;
339
340
 
340
341
  export abstract class NamedPipeServerStreamAcl$instance {
341
- static Create(pipeName: string, direction: PipeDirection, maxNumberOfServerInstances: int, transmissionMode: PipeTransmissionMode, options: PipeOptions, inBufferSize: int, outBufferSize: int, pipeSecurity: PipeSecurity, inheritability?: HandleInheritability, additionalAccessRights?: PipeAccessRights): NamedPipeServerStream;
342
+ static Create(pipeName: string, direction: PipeDirection, maxNumberOfServerInstances: int, transmissionMode: PipeTransmissionMode, options: PipeOptions, inBufferSize: int, outBufferSize: int, pipeSecurity: PipeSecurity | null, inheritability?: HandleInheritability, additionalAccessRights?: PipeAccessRights): NamedPipeServerStream;
342
343
  }
343
344
 
344
345