@tsonic/dotnet 0.8.2 → 0.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/Microsoft.CSharp.RuntimeBinder/internal/index.d.ts +18 -18
  2. package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +1 -1
  3. package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +2 -2
  4. package/Microsoft.Win32/internal/index.d.ts +10 -10
  5. package/System/internal/index.d.ts +964 -950
  6. package/System.Buffers/internal/index.d.ts +2 -2
  7. package/System.Buffers.d.ts +3 -0
  8. package/System.CodeDom.Compiler/internal/index.d.ts +10 -10
  9. package/System.Collections/internal/index.d.ts +30 -24
  10. package/System.Collections.Concurrent/internal/index.d.ts +10 -10
  11. package/System.Collections.Frozen/bindings.json +20 -20
  12. package/System.Collections.Frozen/internal/index.d.ts +6 -6
  13. package/System.Collections.Frozen/internal/metadata.json +10 -10
  14. package/System.Collections.Frozen.d.ts +3 -0
  15. package/System.Collections.Generic/bindings.json +20 -44
  16. package/System.Collections.Generic/internal/index.d.ts +54 -54
  17. package/System.Collections.Generic/internal/metadata.json +10 -26
  18. package/System.Collections.Generic.d.ts +3 -0
  19. package/System.Collections.Immutable/internal/index.d.ts +88 -88
  20. package/System.Collections.Immutable.d.ts +3 -0
  21. package/System.Collections.ObjectModel/internal/index.d.ts +15 -15
  22. package/System.Collections.Specialized/internal/index.d.ts +53 -49
  23. package/System.ComponentModel/internal/index.d.ts +388 -376
  24. package/System.ComponentModel.DataAnnotations/internal/index.d.ts +55 -45
  25. package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +3 -2
  26. package/System.ComponentModel.Design/internal/index.d.ts +36 -36
  27. package/System.ComponentModel.Design.Serialization/internal/index.d.ts +20 -20
  28. package/System.Data/internal/index.d.ts +171 -163
  29. package/System.Data.Common/internal/index.d.ts +36 -28
  30. package/System.Data.Common.d.ts +3 -0
  31. package/System.Data.SqlTypes/internal/index.d.ts +23 -23
  32. package/System.Data.d.ts +3 -0
  33. package/System.Diagnostics/internal/index.d.ts +250 -228
  34. package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +37 -23
  35. package/System.Diagnostics.Contracts/internal/index.d.ts +4 -4
  36. package/System.Diagnostics.Metrics/internal/index.d.ts +34 -29
  37. package/System.Diagnostics.Metrics.d.ts +3 -0
  38. package/System.Diagnostics.SymbolStore/internal/index.d.ts +4 -4
  39. package/System.Diagnostics.Tracing/internal/index.d.ts +26 -24
  40. package/System.Diagnostics.d.ts +3 -0
  41. package/System.Drawing/internal/index.d.ts +76 -76
  42. package/System.Dynamic/internal/index.d.ts +26 -26
  43. package/System.Formats.Asn1/internal/index.d.ts +4 -4
  44. package/System.Formats.Tar/internal/index.d.ts +5 -4
  45. package/System.Globalization/internal/index.d.ts +22 -20
  46. package/System.Globalization.d.ts +3 -0
  47. package/System.IO/internal/index.d.ts +106 -103
  48. package/System.IO.Compression/internal/index.d.ts +24 -24
  49. package/System.IO.Compression.d.ts +3 -0
  50. package/System.IO.Enumeration/internal/index.d.ts +7 -5
  51. package/System.IO.IsolatedStorage/internal/index.d.ts +9 -9
  52. package/System.IO.MemoryMappedFiles/internal/index.d.ts +8 -8
  53. package/System.IO.Pipelines/internal/index.d.ts +5 -5
  54. package/System.IO.Pipelines.d.ts +3 -0
  55. package/System.IO.Pipes/internal/index.d.ts +4 -4
  56. package/System.IO.Pipes.d.ts +3 -0
  57. package/System.IO.d.ts +3 -0
  58. package/System.Linq/internal/index.d.ts +207 -207
  59. package/System.Linq.Expressions/internal/index.d.ts +160 -160
  60. package/System.Linq.d.ts +3 -0
  61. package/System.Net/internal/index.d.ts +157 -131
  62. package/System.Net.Cache/internal/index.d.ts +2 -2
  63. package/System.Net.Http/internal/index.d.ts +69 -53
  64. package/System.Net.Http.Headers/internal/index.d.ts +62 -45
  65. package/System.Net.Http.Json/internal/index.d.ts +38 -38
  66. package/System.Net.Http.Json.d.ts +3 -0
  67. package/System.Net.Http.Metrics/internal/index.d.ts +1 -1
  68. package/System.Net.Mail/internal/index.d.ts +80 -70
  69. package/System.Net.Mime/internal/index.d.ts +4 -2
  70. package/System.Net.NetworkInformation/internal/index.d.ts +23 -23
  71. package/System.Net.Quic/internal/index.d.ts +4 -3
  72. package/System.Net.Security/internal/index.d.ts +65 -49
  73. package/System.Net.ServerSentEvents/internal/index.d.ts +3 -2
  74. package/System.Net.Sockets/internal/index.d.ts +49 -42
  75. package/System.Net.Sockets.d.ts +3 -0
  76. package/System.Net.WebSockets/internal/index.d.ts +35 -29
  77. package/System.Numerics/bindings.json +96 -72
  78. package/System.Numerics/internal/index.d.ts +93 -91
  79. package/System.Numerics/internal/metadata.json +64 -48
  80. package/System.Numerics.d.ts +3 -0
  81. package/System.Reflection/internal/index.d.ts +129 -126
  82. package/System.Reflection.Emit/internal/index.d.ts +105 -105
  83. package/System.Reflection.Metadata/internal/index.d.ts +15 -15
  84. package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +4 -4
  85. package/System.Reflection.Metadata.Ecma335.d.ts +3 -0
  86. package/System.Reflection.Metadata.d.ts +3 -0
  87. package/System.Reflection.PortableExecutable/internal/index.d.ts +2 -2
  88. package/System.Reflection.d.ts +3 -0
  89. package/System.Resources/internal/index.d.ts +20 -19
  90. package/System.Runtime/internal/index.d.ts +6 -5
  91. package/System.Runtime.CompilerServices/internal/index.d.ts +30 -28
  92. package/System.Runtime.InteropServices/internal/index.d.ts +85 -83
  93. package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +9 -9
  94. package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +20 -20
  95. package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +28 -26
  96. package/System.Runtime.InteropServices.d.ts +3 -0
  97. package/System.Runtime.Intrinsics.d.ts +3 -0
  98. package/System.Runtime.Loader/internal/index.d.ts +2 -2
  99. package/System.Runtime.Remoting/internal/index.d.ts +1 -1
  100. package/System.Runtime.Serialization/internal/index.d.ts +66 -54
  101. package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +3 -3
  102. package/System.Runtime.Serialization.Formatters/internal/index.d.ts +4 -2
  103. package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +5 -4
  104. package/System.Runtime.Serialization.Json/internal/index.d.ts +22 -21
  105. package/System.Runtime.Serialization.Json.d.ts +3 -0
  106. package/System.Runtime.Serialization.d.ts +3 -0
  107. package/System.Runtime.Versioning/internal/index.d.ts +12 -9
  108. package/System.Security/internal/index.d.ts +62 -52
  109. package/System.Security.AccessControl/internal/index.d.ts +29 -25
  110. package/System.Security.Authentication/internal/index.d.ts +4 -4
  111. package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +8 -8
  112. package/System.Security.Claims/internal/index.d.ts +21 -15
  113. package/System.Security.Cryptography/bindings.json +4212 -4212
  114. package/System.Security.Cryptography/internal/index.d.ts +155 -141
  115. package/System.Security.Cryptography.X509Certificates/bindings.json +768 -768
  116. package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +83 -82
  117. package/System.Security.Cryptography.X509Certificates.d.ts +3 -0
  118. package/System.Security.Permissions/internal/index.d.ts +2 -2
  119. package/System.Security.Principal/internal/index.d.ts +3 -3
  120. package/System.Text/internal/index.d.ts +48 -46
  121. package/System.Text.Json/internal/index.d.ts +87 -81
  122. package/System.Text.Json.Nodes/internal/index.d.ts +41 -41
  123. package/System.Text.Json.Schema/internal/index.d.ts +4 -3
  124. package/System.Text.Json.Schema.d.ts +3 -0
  125. package/System.Text.Json.Serialization/internal/index.d.ts +5 -4
  126. package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +55 -30
  127. package/System.Text.Json.Serialization.Metadata.d.ts +3 -0
  128. package/System.Text.Json.d.ts +3 -0
  129. package/System.Text.RegularExpressions/internal/index.d.ts +5 -5
  130. package/System.Text.Unicode/internal/index.d.ts +4 -4
  131. package/System.Text.d.ts +3 -0
  132. package/System.Threading/internal/index.d.ts +86 -85
  133. package/System.Threading.Channels/internal/index.d.ts +8 -8
  134. package/System.Threading.Tasks/internal/index.d.ts +82 -82
  135. package/System.Threading.Tasks.Dataflow/internal/index.d.ts +25 -26
  136. package/System.Threading.Tasks.Dataflow.d.ts +3 -0
  137. package/System.Threading.Tasks.Sources/internal/index.d.ts +4 -4
  138. package/System.Threading.Tasks.d.ts +3 -0
  139. package/System.Threading.d.ts +3 -0
  140. package/System.Timers/internal/index.d.ts +5 -3
  141. package/System.Transactions/internal/index.d.ts +18 -16
  142. package/System.Web/internal/index.d.ts +30 -30
  143. package/System.Windows.Input/internal/index.d.ts +2 -2
  144. package/System.Xml/internal/index.d.ts +162 -161
  145. package/System.Xml.Linq/internal/index.d.ts +38 -37
  146. package/System.Xml.Linq.d.ts +3 -0
  147. package/System.Xml.Resolvers/internal/index.d.ts +5 -5
  148. package/System.Xml.Schema/internal/index.d.ts +133 -88
  149. package/System.Xml.Schema.d.ts +3 -0
  150. package/System.Xml.Serialization/internal/index.d.ts +138 -117
  151. package/System.Xml.XPath/internal/index.d.ts +12 -12
  152. package/System.Xml.XPath.d.ts +3 -0
  153. package/System.Xml.Xsl/internal/index.d.ts +34 -34
  154. package/System.Xml.Xsl.Runtime/internal/index.d.ts +16 -16
  155. package/System.d.ts +3 -0
  156. package/__internal/extensions/index.d.ts +2516 -2196
  157. package/package.json +2 -2
@@ -35,3 +35,6 @@ export { BrotliDecoder as BrotliDecoder } from './System.IO.Compression/internal
35
35
  export { BrotliEncoder as BrotliEncoder } from './System.IO.Compression/internal/index.js';
36
36
  export { ZipFile$instance as ZipFile } from './System.IO.Compression/internal/index.js';
37
37
  export { ZipFileExtensions$instance as ZipFileExtensions } from './System.IO.Compression/internal/index.js';
38
+ // Extension methods (C# using semantics)
39
+ export type { ExtensionMethods_System_IO_Compression as ExtensionMethods } from './__internal/extensions/index.js';
40
+
@@ -54,14 +54,16 @@ export const FileSystemEntry: {
54
54
  export type FileSystemEntry = FileSystemEntry$instance;
55
55
 
56
56
  export interface FileSystemEnumerable_1$instance<TResult> {
57
- shouldIncludePredicate: FileSystemEnumerable_1_FindPredicate<TResult> | undefined;
58
- shouldRecursePredicate: FileSystemEnumerable_1_FindPredicate<TResult> | undefined;
57
+ get shouldIncludePredicate(): FileSystemEnumerable_1_FindPredicate<TResult> | undefined;
58
+ set shouldIncludePredicate(value: FileSystemEnumerable_1_FindPredicate<TResult>);
59
+ get shouldRecursePredicate(): FileSystemEnumerable_1_FindPredicate<TResult> | undefined;
60
+ set shouldRecursePredicate(value: FileSystemEnumerable_1_FindPredicate<TResult>);
59
61
  getEnumerator(): IEnumerator_1<TResult>;
60
62
  }
61
63
 
62
64
 
63
65
  export const FileSystemEnumerable_1: {
64
- new<TResult>(directory: string, transform: FileSystemEnumerable_1_FindTransform<TResult>, options: EnumerationOptions | undefined): FileSystemEnumerable_1<TResult>;
66
+ new<TResult>(directory: string, transform: FileSystemEnumerable_1_FindTransform<TResult>, options: EnumerationOptions): FileSystemEnumerable_1<TResult>;
65
67
  };
66
68
 
67
69
 
@@ -82,7 +84,7 @@ export interface FileSystemEnumerator_1$instance<TResult> extends CriticalFinali
82
84
 
83
85
 
84
86
  export const FileSystemEnumerator_1: {
85
- new<TResult>(directory: string, options: EnumerationOptions | undefined): FileSystemEnumerator_1<TResult>;
87
+ new<TResult>(directory: string, options: EnumerationOptions): FileSystemEnumerator_1<TResult>;
86
88
  };
87
89
 
88
90
 
@@ -97,7 +99,7 @@ export type FileSystemEnumerator_1<TResult> = FileSystemEnumerator_1$instance<TR
97
99
  export abstract class FileSystemName$instance {
98
100
  static matchesSimpleExpression(expression: ReadOnlySpan_1<System_Internal.Char>, name: ReadOnlySpan_1<System_Internal.Char>, ignoreCase?: boolean): boolean;
99
101
  static matchesWin32Expression(expression: ReadOnlySpan_1<System_Internal.Char>, name: ReadOnlySpan_1<System_Internal.Char>, ignoreCase?: boolean): boolean;
100
- static translateWin32Expression(expression: string | undefined): string;
102
+ static translateWin32Expression(expression: string): string;
101
103
  }
102
104
 
103
105
 
@@ -58,7 +58,7 @@ export const IsolatedStorage: {
58
58
  export type IsolatedStorage = IsolatedStorage$instance;
59
59
 
60
60
  export interface IsolatedStorageException$instance extends Exception {
61
- getObjectData(info: SerializationInfo | undefined, context: StreamingContext): void;
61
+ getObjectData(info: SerializationInfo, context: StreamingContext): void;
62
62
  }
63
63
 
64
64
 
@@ -117,9 +117,9 @@ export const IsolatedStorageFile: {
117
117
  getMachineStoreForAssembly(): IsolatedStorageFile;
118
118
  getMachineStoreForDomain(): IsolatedStorageFile;
119
119
  getStore(scope: IsolatedStorageScope, domainIdentity: unknown, assemblyIdentity: unknown): IsolatedStorageFile;
120
- getStore(scope: IsolatedStorageScope, applicationIdentity: unknown | undefined): IsolatedStorageFile;
120
+ getStore(scope: IsolatedStorageScope, applicationIdentity: unknown): IsolatedStorageFile;
121
121
  getStore(scope: IsolatedStorageScope, domainEvidenceType: Type, assemblyEvidenceType: Type): IsolatedStorageFile;
122
- getStore(scope: IsolatedStorageScope, applicationEvidenceType: Type | undefined): IsolatedStorageFile;
122
+ getStore(scope: IsolatedStorageScope, applicationEvidenceType: Type): IsolatedStorageFile;
123
123
  getUserStoreForApplication(): IsolatedStorageFile;
124
124
  getUserStoreForAssembly(): IsolatedStorageFile;
125
125
  getUserStoreForDomain(): IsolatedStorageFile;
@@ -146,8 +146,8 @@ export interface IsolatedStorageFileStream$instance extends FileStream {
146
146
  readonly length: long;
147
147
  position: long;
148
148
  readonly safeFileHandle: SafeFileHandle;
149
- beginRead(array: byte[], offset: int, numBytes: int, userCallback: AsyncCallback | undefined, stateObject: unknown | undefined): IAsyncResult;
150
- beginWrite(array: byte[], offset: int, numBytes: int, userCallback: AsyncCallback | undefined, stateObject: unknown | undefined): IAsyncResult;
149
+ beginRead(array: byte[], offset: int, numBytes: int, userCallback: AsyncCallback, stateObject: unknown): IAsyncResult;
150
+ beginWrite(array: byte[], offset: int, numBytes: int, userCallback: AsyncCallback, stateObject: unknown): IAsyncResult;
151
151
  dispose(): void;
152
152
  disposeAsync(): ValueTask;
153
153
  endRead(asyncResult: IAsyncResult): int;
@@ -182,13 +182,13 @@ export interface IsolatedStorageFileStream$instance extends FileStream {
182
182
 
183
183
  export const IsolatedStorageFileStream: {
184
184
  new(path: string, mode: FileMode): IsolatedStorageFileStream;
185
- new(path: string, mode: FileMode, isf: IsolatedStorageFile | undefined): IsolatedStorageFileStream;
185
+ new(path: string, mode: FileMode, isf: IsolatedStorageFile): IsolatedStorageFileStream;
186
186
  new(path: string, mode: FileMode, access: FileAccess): IsolatedStorageFileStream;
187
- new(path: string, mode: FileMode, access: FileAccess, isf: IsolatedStorageFile | undefined): IsolatedStorageFileStream;
187
+ new(path: string, mode: FileMode, access: FileAccess, isf: IsolatedStorageFile): IsolatedStorageFileStream;
188
188
  new(path: string, mode: FileMode, access: FileAccess, share: FileShare): IsolatedStorageFileStream;
189
- new(path: string, mode: FileMode, access: FileAccess, share: FileShare, isf: IsolatedStorageFile | undefined): IsolatedStorageFileStream;
189
+ new(path: string, mode: FileMode, access: FileAccess, share: FileShare, isf: IsolatedStorageFile): IsolatedStorageFileStream;
190
190
  new(path: string, mode: FileMode, access: FileAccess, share: FileShare, bufferSize: int): IsolatedStorageFileStream;
191
- new(path: string, mode: FileMode, access: FileAccess, share: FileShare, bufferSize: int, isf: IsolatedStorageFile | undefined): IsolatedStorageFileStream;
191
+ new(path: string, mode: FileMode, access: FileAccess, share: FileShare, bufferSize: int, isf: IsolatedStorageFile): IsolatedStorageFileStream;
192
192
  };
193
193
 
194
194
 
@@ -61,16 +61,16 @@ export interface MemoryMappedFile$instance {
61
61
 
62
62
  export const MemoryMappedFile: {
63
63
  new(): MemoryMappedFile;
64
- createFromFile(fileHandle: SafeFileHandle, mapName: string | undefined, capacity: long, access: MemoryMappedFileAccess, inheritability: HandleInheritability, leaveOpen: boolean): MemoryMappedFile;
65
- createFromFile(fileStream: FileStream, mapName: string | undefined, capacity: long, access: MemoryMappedFileAccess, inheritability: HandleInheritability, leaveOpen: boolean): MemoryMappedFile;
66
- createFromFile(path: string, mode: FileMode, mapName: string | undefined, capacity: long, access: MemoryMappedFileAccess): MemoryMappedFile;
67
- createFromFile(path: string, mode: FileMode, mapName: string | undefined, capacity: long): MemoryMappedFile;
68
- createFromFile(path: string, mode: FileMode, mapName: string | undefined): MemoryMappedFile;
64
+ createFromFile(fileHandle: SafeFileHandle, mapName: string, capacity: long, access: MemoryMappedFileAccess, inheritability: HandleInheritability, leaveOpen: boolean): MemoryMappedFile;
65
+ createFromFile(fileStream: FileStream, mapName: string, capacity: long, access: MemoryMappedFileAccess, inheritability: HandleInheritability, leaveOpen: boolean): MemoryMappedFile;
66
+ createFromFile(path: string, mode: FileMode, mapName: string, capacity: long, access: MemoryMappedFileAccess): MemoryMappedFile;
67
+ createFromFile(path: string, mode: FileMode, mapName: string, capacity: long): MemoryMappedFile;
68
+ createFromFile(path: string, mode: FileMode, mapName: string): MemoryMappedFile;
69
69
  createFromFile(path: string, mode: FileMode): MemoryMappedFile;
70
70
  createFromFile(path: string): MemoryMappedFile;
71
- createNew(mapName: string | undefined, capacity: long, access: MemoryMappedFileAccess, options: MemoryMappedFileOptions, inheritability: HandleInheritability): MemoryMappedFile;
72
- createNew(mapName: string | undefined, capacity: long, access: MemoryMappedFileAccess): MemoryMappedFile;
73
- createNew(mapName: string | undefined, capacity: long): MemoryMappedFile;
71
+ createNew(mapName: string, capacity: long, access: MemoryMappedFileAccess, options: MemoryMappedFileOptions, inheritability: HandleInheritability): MemoryMappedFile;
72
+ createNew(mapName: string, capacity: long, access: MemoryMappedFileAccess): MemoryMappedFile;
73
+ createNew(mapName: string, capacity: long): MemoryMappedFile;
74
74
  createOrOpen(mapName: string, capacity: long, access: MemoryMappedFileAccess, options: MemoryMappedFileOptions, inheritability: HandleInheritability): MemoryMappedFile;
75
75
  createOrOpen(mapName: string, capacity: long, access: MemoryMappedFileAccess): MemoryMappedFile;
76
76
  createOrOpen(mapName: string, capacity: long): MemoryMappedFile;
@@ -95,7 +95,7 @@ export interface PipeReader$instance {
95
95
  completeAsync(exception?: Exception): ValueTask;
96
96
  copyToAsync(destination: PipeWriter, cancellationToken?: CancellationToken): Task;
97
97
  copyToAsync(destination: Stream, cancellationToken?: CancellationToken): Task;
98
- onWriterCompleted(callback: Action_2<Exception | undefined, unknown | undefined>, state: unknown): void;
98
+ onWriterCompleted(callback: Action_2<Exception, unknown>, state: unknown): void;
99
99
  readAsync(cancellationToken?: CancellationToken): ValueTask_1<ReadResult>;
100
100
  readAtLeastAsync(minimumSize: int, cancellationToken?: CancellationToken): ValueTask_1<ReadResult>;
101
101
  tryRead(result: ReadResult): boolean;
@@ -104,14 +104,14 @@ export interface PipeReader$instance {
104
104
 
105
105
  export const PipeReader: {
106
106
  create(sequence: ReadOnlySequence_1<System_Internal.Byte>): PipeReader;
107
- create(stream: Stream, readerOptions?: StreamPipeReaderOptions | undefined): PipeReader;
107
+ create(stream: Stream, readerOptions?: StreamPipeReaderOptions): PipeReader;
108
108
  };
109
109
 
110
110
 
111
111
  export type PipeReader = PipeReader$instance;
112
112
 
113
113
  export interface PipeScheduler$instance {
114
- schedule(action: Action_1<unknown | undefined>, state: unknown): void;
114
+ schedule(action: Action_1<unknown>, state: unknown): void;
115
115
  }
116
116
 
117
117
 
@@ -134,13 +134,13 @@ export interface PipeWriter$instance {
134
134
  flushAsync(cancellationToken?: CancellationToken): ValueTask_1<FlushResult>;
135
135
  getMemory(sizeHint?: int): Memory_1<System_Internal.Byte>;
136
136
  getSpan(sizeHint?: int): Span_1<System_Internal.Byte>;
137
- onReaderCompleted(callback: Action_2<Exception | undefined, unknown | undefined>, state: unknown): void;
137
+ onReaderCompleted(callback: Action_2<Exception, unknown>, state: unknown): void;
138
138
  writeAsync(source: ReadOnlyMemory_1<System_Internal.Byte>, cancellationToken?: CancellationToken): ValueTask_1<FlushResult>;
139
139
  }
140
140
 
141
141
 
142
142
  export const PipeWriter: {
143
- create(stream: Stream, writerOptions?: StreamPipeWriterOptions | undefined): PipeWriter;
143
+ create(stream: Stream, writerOptions?: StreamPipeWriterOptions): PipeWriter;
144
144
  };
145
145
 
146
146
 
@@ -24,3 +24,6 @@ export { ReadResult as ReadResult } from './System.IO.Pipelines/internal/index.j
24
24
  export { StreamPipeExtensions$instance as StreamPipeExtensions } from './System.IO.Pipelines/internal/index.js';
25
25
  export { StreamPipeReaderOptions as StreamPipeReaderOptions } from './System.IO.Pipelines/internal/index.js';
26
26
  export { StreamPipeWriterOptions as StreamPipeWriterOptions } from './System.IO.Pipelines/internal/index.js';
27
+ // Extension methods (C# using semantics)
28
+ export type { ExtensionMethods_System_IO_Pipelines as ExtensionMethods } from './__internal/extensions/index.js';
29
+
@@ -256,8 +256,8 @@ export interface PipeStream$instance extends Stream {
256
256
  readMode: PipeTransmissionMode;
257
257
  readonly safePipeHandle: SafePipeHandle;
258
258
  readonly transmissionMode: PipeTransmissionMode;
259
- beginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
260
- beginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
259
+ beginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
260
+ beginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
261
261
  dispose(): void;
262
262
  disposeAsync(): ValueTask;
263
263
  endRead(asyncResult: IAsyncResult): int;
@@ -301,14 +301,14 @@ export type PipeStream = PipeStream$instance & __PipeStream$views;
301
301
 
302
302
 
303
303
  export abstract class AnonymousPipeServerStreamAcl$instance {
304
- static create(direction: PipeDirection, inheritability: HandleInheritability, bufferSize: int, pipeSecurity: PipeSecurity | undefined): AnonymousPipeServerStream;
304
+ static create(direction: PipeDirection, inheritability: HandleInheritability, bufferSize: int, pipeSecurity: PipeSecurity): AnonymousPipeServerStream;
305
305
  }
306
306
 
307
307
 
308
308
  export type AnonymousPipeServerStreamAcl = AnonymousPipeServerStreamAcl$instance;
309
309
 
310
310
  export abstract class NamedPipeServerStreamAcl$instance {
311
- static create(pipeName: string, direction: PipeDirection, maxNumberOfServerInstances: int, transmissionMode: PipeTransmissionMode, options: PipeOptions, inBufferSize: int, outBufferSize: int, pipeSecurity: PipeSecurity | undefined, inheritability?: HandleInheritability, additionalAccessRights?: PipeAccessRights): NamedPipeServerStream;
311
+ static create(pipeName: string, direction: PipeDirection, maxNumberOfServerInstances: int, transmissionMode: PipeTransmissionMode, options: PipeOptions, inBufferSize: int, outBufferSize: int, pipeSecurity: PipeSecurity, inheritability?: HandleInheritability, additionalAccessRights?: PipeAccessRights): NamedPipeServerStream;
312
312
  }
313
313
 
314
314
 
@@ -33,3 +33,6 @@ export { PipeAccessRule as PipeAccessRule } from './System.IO.Pipes/internal/ind
33
33
  export { PipeAuditRule as PipeAuditRule } from './System.IO.Pipes/internal/index.js';
34
34
  export { PipeSecurity as PipeSecurity } from './System.IO.Pipes/internal/index.js';
35
35
  export { PipesAclExtensions$instance as PipesAclExtensions } from './System.IO.Pipes/internal/index.js';
36
+ // Extension methods (C# using semantics)
37
+ export type { ExtensionMethods_System_IO_Pipes as ExtensionMethods } from './__internal/extensions/index.js';
38
+
package/System.IO.d.ts CHANGED
@@ -77,3 +77,6 @@ export { TextWriter as TextWriter } from './System.IO/internal/index.js';
77
77
  export { UnixFileMode as UnixFileMode } from './System.IO/internal/index.js';
78
78
  export { UnmanagedMemoryAccessor as UnmanagedMemoryAccessor } from './System.IO/internal/index.js';
79
79
  export { UnmanagedMemoryStream as UnmanagedMemoryStream } from './System.IO/internal/index.js';
80
+ // Extension methods (C# using semantics)
81
+ export type { ExtensionMethods_System_IO as ExtensionMethods } from './__internal/extensions/index.js';
82
+