@tsonic/dotnet 0.8.0 → 0.8.2
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/Microsoft.CSharp.RuntimeBinder/internal/index.d.ts +21 -21
- package/Microsoft.VisualBasic/internal/index.d.ts +24 -24
- package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +30 -30
- package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +16 -16
- package/Microsoft.Win32/internal/index.d.ts +12 -12
- package/Microsoft.Win32.SafeHandles/internal/index.d.ts +19 -19
- package/System/bindings.json +114 -114
- package/System/internal/index.d.ts +1277 -1289
- package/System/internal/metadata.json +73 -73
- package/System.Buffers/internal/index.d.ts +13 -13
- package/System.CodeDom.Compiler/internal/index.d.ts +13 -13
- package/System.Collections/internal/index.d.ts +66 -68
- package/System.Collections.Concurrent/internal/index.d.ts +24 -24
- package/System.Collections.Frozen/bindings.json +20 -20
- package/System.Collections.Frozen/internal/index.d.ts +10 -10
- package/System.Collections.Frozen/internal/metadata.json +10 -10
- package/System.Collections.Generic/bindings.json +44 -20
- package/System.Collections.Generic/internal/index.d.ts +141 -133
- package/System.Collections.Generic/internal/metadata.json +26 -10
- package/System.Collections.Immutable/internal/index.d.ts +121 -121
- package/System.Collections.ObjectModel/internal/index.d.ts +23 -23
- package/System.Collections.Specialized/internal/index.d.ts +85 -87
- package/System.ComponentModel/internal/index.d.ts +595 -597
- package/System.ComponentModel.DataAnnotations/internal/index.d.ts +105 -105
- package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +9 -9
- package/System.ComponentModel.Design/internal/index.d.ts +90 -90
- package/System.ComponentModel.Design.Serialization/internal/index.d.ts +37 -37
- package/System.Data/internal/index.d.ts +225 -225
- package/System.Data.Common/internal/index.d.ts +62 -62
- package/System.Data.SqlTypes/internal/index.d.ts +73 -73
- package/System.Diagnostics/internal/index.d.ts +343 -343
- package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +50 -50
- package/System.Diagnostics.Contracts/internal/index.d.ts +20 -20
- package/System.Diagnostics.Metrics/internal/index.d.ts +46 -46
- package/System.Diagnostics.SymbolStore/internal/index.d.ts +9 -9
- package/System.Diagnostics.Tracing/internal/index.d.ts +44 -44
- package/System.Drawing/internal/index.d.ts +99 -99
- package/System.Dynamic/internal/index.d.ts +33 -33
- package/System.Formats.Asn1/internal/index.d.ts +12 -12
- package/System.Formats.Tar/internal/index.d.ts +17 -17
- package/System.Globalization/internal/index.d.ts +51 -51
- package/System.IO/internal/index.d.ts +172 -172
- package/System.IO.Compression/internal/index.d.ts +56 -56
- package/System.IO.Enumeration/internal/index.d.ts +6 -6
- package/System.IO.IsolatedStorage/internal/index.d.ts +17 -17
- package/System.IO.MemoryMappedFiles/internal/index.d.ts +11 -11
- package/System.IO.Pipelines/internal/index.d.ts +13 -13
- package/System.IO.Pipes/internal/index.d.ts +32 -32
- package/System.Linq/internal/index.d.ts +187 -187
- package/System.Linq.Expressions/internal/index.d.ts +203 -203
- package/System.Linq.Expressions.Interpreter/internal/index.d.ts +3 -3
- package/System.Net/internal/index.d.ts +218 -220
- package/System.Net.Cache/internal/index.d.ts +10 -10
- package/System.Net.Http/internal/index.d.ts +89 -89
- package/System.Net.Http.Headers/internal/index.d.ts +86 -86
- package/System.Net.Http.Json/internal/index.d.ts +59 -59
- package/System.Net.Http.Metrics/internal/index.d.ts +2 -2
- package/System.Net.Mail/internal/index.d.ts +92 -92
- package/System.Net.Mime/internal/index.d.ts +6 -6
- package/System.Net.NetworkInformation/internal/index.d.ts +39 -39
- package/System.Net.Quic/internal/index.d.ts +13 -13
- package/System.Net.Security/internal/index.d.ts +70 -70
- package/System.Net.ServerSentEvents/internal/index.d.ts +3 -3
- package/System.Net.Sockets/internal/index.d.ts +94 -94
- package/System.Net.WebSockets/internal/index.d.ts +46 -46
- package/System.Numerics/bindings.json +384 -0
- package/System.Numerics/internal/index.d.ts +128 -130
- package/System.Numerics/internal/metadata.json +256 -0
- package/System.Reflection/internal/index.d.ts +271 -271
- package/System.Reflection.Emit/internal/index.d.ts +123 -123
- package/System.Reflection.Metadata/bindings.json +48 -0
- package/System.Reflection.Metadata/internal/index.d.ts +179 -179
- package/System.Reflection.Metadata/internal/metadata.json +32 -0
- package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +40 -40
- package/System.Reflection.PortableExecutable/internal/index.d.ts +26 -26
- package/System.Resources/internal/index.d.ts +38 -38
- package/System.Runtime/internal/index.d.ts +9 -9
- package/System.Runtime.CompilerServices/internal/index.d.ts +168 -168
- package/System.Runtime.ConstrainedExecution/internal/index.d.ts +2 -2
- package/System.Runtime.ExceptionServices/internal/index.d.ts +3 -3
- package/System.Runtime.InteropServices/bindings.json +22 -22
- package/System.Runtime.InteropServices/internal/index.d.ts +184 -184
- package/System.Runtime.InteropServices/internal/metadata.json +13 -13
- package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +30 -30
- package/System.Runtime.InteropServices.Java/internal/index.d.ts +3 -3
- package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +50 -50
- package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +63 -63
- package/System.Runtime.InteropServices.ObjectiveC/internal/index.d.ts +1 -1
- package/System.Runtime.InteropServices.Swift/internal/index.d.ts +4 -4
- package/System.Runtime.Intrinsics/internal/index.d.ts +4 -4
- package/System.Runtime.Loader/internal/index.d.ts +9 -9
- package/System.Runtime.Remoting/internal/index.d.ts +2 -2
- package/System.Runtime.Serialization/internal/index.d.ts +113 -115
- package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +19 -19
- package/System.Runtime.Serialization.Formatters/internal/index.d.ts +2 -2
- package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +5 -5
- package/System.Runtime.Serialization.Json/internal/index.d.ts +28 -28
- package/System.Runtime.Versioning/internal/index.d.ts +22 -22
- package/System.Security/internal/index.d.ts +63 -63
- package/System.Security.AccessControl/internal/index.d.ts +84 -84
- package/System.Security.Authentication/internal/index.d.ts +6 -6
- package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +13 -13
- package/System.Security.Claims/internal/index.d.ts +38 -40
- package/System.Security.Cryptography/internal/index.d.ts +378 -378
- package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +172 -172
- package/System.Security.Permissions/internal/index.d.ts +1 -1
- package/System.Security.Policy/internal/index.d.ts +6 -6
- package/System.Security.Principal/internal/index.d.ts +29 -31
- package/System.Text/internal/index.d.ts +94 -94
- package/System.Text.Encodings.Web/internal/index.d.ts +3 -3
- package/System.Text.Json/internal/index.d.ts +103 -103
- package/System.Text.Json.Nodes/internal/index.d.ts +73 -73
- package/System.Text.Json.Schema/internal/index.d.ts +7 -7
- package/System.Text.Json.Serialization/internal/index.d.ts +34 -34
- package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +57 -57
- package/System.Text.RegularExpressions/internal/index.d.ts +29 -29
- package/System.Text.Unicode/internal/index.d.ts +6 -6
- package/System.Threading/internal/index.d.ts +160 -160
- package/System.Threading.Channels/internal/index.d.ts +12 -12
- package/System.Threading.Tasks/internal/index.d.ts +125 -135
- package/System.Threading.Tasks.Dataflow/internal/index.d.ts +54 -51
- package/System.Threading.Tasks.Sources/internal/index.d.ts +5 -5
- package/System.Timers/internal/index.d.ts +8 -8
- package/System.Transactions/internal/index.d.ts +51 -51
- package/System.Web/internal/index.d.ts +32 -32
- package/System.Windows.Input/internal/index.d.ts +2 -2
- package/System.Windows.Markup/internal/index.d.ts +2 -2
- package/System.Xml/internal/index.d.ts +281 -281
- package/System.Xml.Linq/internal/index.d.ts +76 -76
- package/System.Xml.Resolvers/internal/index.d.ts +8 -8
- package/System.Xml.Schema/internal/index.d.ts +173 -173
- package/System.Xml.Serialization/internal/index.d.ts +200 -200
- package/System.Xml.XPath/internal/index.d.ts +28 -28
- package/System.Xml.Xsl/internal/index.d.ts +53 -53
- package/System.Xml.Xsl.Runtime/internal/index.d.ts +72 -72
- package/__internal/extensions/index.d.ts +415 -414
- package/package.json +1 -1
|
@@ -129,7 +129,7 @@ export interface AsyncFlowControl$instance {
|
|
|
129
129
|
|
|
130
130
|
|
|
131
131
|
export const AsyncFlowControl: {
|
|
132
|
-
new(): AsyncFlowControl
|
|
132
|
+
new(): AsyncFlowControl;
|
|
133
133
|
};
|
|
134
134
|
|
|
135
135
|
|
|
@@ -147,14 +147,14 @@ export type AsyncFlowControl = AsyncFlowControl$instance & __AsyncFlowControl$vi
|
|
|
147
147
|
|
|
148
148
|
|
|
149
149
|
export interface AsyncLocalValueChangedArgs_1$instance<T> {
|
|
150
|
-
readonly currentValue: T;
|
|
151
|
-
readonly previousValue: T;
|
|
150
|
+
readonly currentValue: T | undefined;
|
|
151
|
+
readonly previousValue: T | undefined;
|
|
152
152
|
readonly threadContextChanged: boolean;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
|
|
156
156
|
export const AsyncLocalValueChangedArgs_1: {
|
|
157
|
-
new<T>(): AsyncLocalValueChangedArgs_1
|
|
157
|
+
new<T>(): AsyncLocalValueChangedArgs_1<T>;
|
|
158
158
|
};
|
|
159
159
|
|
|
160
160
|
|
|
@@ -165,21 +165,21 @@ export interface CancellationToken$instance {
|
|
|
165
165
|
readonly isCancellationRequested: boolean;
|
|
166
166
|
readonly waitHandle: WaitHandle;
|
|
167
167
|
equals(other: CancellationToken): boolean;
|
|
168
|
-
equals(other: unknown): boolean;
|
|
168
|
+
equals(other: unknown | undefined): boolean;
|
|
169
169
|
getHashCode(): int;
|
|
170
|
-
register(callback: Action): CancellationTokenRegistration;
|
|
171
|
-
register(callback: Action, useSynchronizationContext: boolean): CancellationTokenRegistration;
|
|
172
|
-
register(callback: Action_1<unknown>, state: unknown): CancellationTokenRegistration;
|
|
173
|
-
register(callback: Action_2<unknown, CancellationToken>, state: unknown): CancellationTokenRegistration;
|
|
174
|
-
register(callback: Action_1<unknown>, state: unknown, useSynchronizationContext: boolean): CancellationTokenRegistration;
|
|
170
|
+
register(callback: Action | undefined): CancellationTokenRegistration;
|
|
171
|
+
register(callback: Action | undefined, useSynchronizationContext: boolean): CancellationTokenRegistration;
|
|
172
|
+
register(callback: Action_1<unknown | undefined>, state: unknown | undefined): CancellationTokenRegistration;
|
|
173
|
+
register(callback: Action_2<unknown | undefined, CancellationToken>, state: unknown | undefined): CancellationTokenRegistration;
|
|
174
|
+
register(callback: Action_1<unknown | undefined>, state: unknown | undefined, useSynchronizationContext: boolean): CancellationTokenRegistration;
|
|
175
175
|
throwIfCancellationRequested(): void;
|
|
176
|
-
unsafeRegister(callback: Action_1<unknown>, state: unknown): CancellationTokenRegistration;
|
|
177
|
-
unsafeRegister(callback: Action_2<unknown, CancellationToken>, state: unknown): CancellationTokenRegistration;
|
|
176
|
+
unsafeRegister(callback: Action_1<unknown | undefined>, state: unknown | undefined): CancellationTokenRegistration;
|
|
177
|
+
unsafeRegister(callback: Action_2<unknown | undefined, CancellationToken>, state: unknown | undefined): CancellationTokenRegistration;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
|
|
181
181
|
export const CancellationToken: {
|
|
182
|
-
new(canceled: boolean): CancellationToken
|
|
182
|
+
new(canceled: boolean): CancellationToken;
|
|
183
183
|
readonly none: CancellationToken;
|
|
184
184
|
};
|
|
185
185
|
|
|
@@ -206,7 +206,7 @@ export interface CancellationTokenRegistration$instance {
|
|
|
206
206
|
|
|
207
207
|
|
|
208
208
|
export const CancellationTokenRegistration: {
|
|
209
|
-
new(): CancellationTokenRegistration
|
|
209
|
+
new(): CancellationTokenRegistration;
|
|
210
210
|
};
|
|
211
211
|
|
|
212
212
|
|
|
@@ -230,7 +230,7 @@ export interface Lock_Scope$instance {
|
|
|
230
230
|
|
|
231
231
|
|
|
232
232
|
export const Lock_Scope: {
|
|
233
|
-
new(): Lock_Scope
|
|
233
|
+
new(): Lock_Scope;
|
|
234
234
|
};
|
|
235
235
|
|
|
236
236
|
|
|
@@ -244,7 +244,7 @@ export interface LockCookie$instance {
|
|
|
244
244
|
|
|
245
245
|
|
|
246
246
|
export const LockCookie: {
|
|
247
|
-
new(): LockCookie
|
|
247
|
+
new(): LockCookie;
|
|
248
248
|
};
|
|
249
249
|
|
|
250
250
|
|
|
@@ -265,7 +265,7 @@ export interface NamedWaitHandleOptions$instance {
|
|
|
265
265
|
|
|
266
266
|
|
|
267
267
|
export const NamedWaitHandleOptions: {
|
|
268
|
-
new(): NamedWaitHandleOptions
|
|
268
|
+
new(): NamedWaitHandleOptions;
|
|
269
269
|
};
|
|
270
270
|
|
|
271
271
|
|
|
@@ -281,7 +281,7 @@ export interface NativeOverlapped$instance {
|
|
|
281
281
|
|
|
282
282
|
|
|
283
283
|
export const NativeOverlapped: {
|
|
284
|
-
new(): NativeOverlapped
|
|
284
|
+
new(): NativeOverlapped;
|
|
285
285
|
};
|
|
286
286
|
|
|
287
287
|
|
|
@@ -301,7 +301,7 @@ export interface SpinLock$instance {
|
|
|
301
301
|
|
|
302
302
|
|
|
303
303
|
export const SpinLock: {
|
|
304
|
-
new(enableThreadOwnerTracking: boolean): SpinLock
|
|
304
|
+
new(enableThreadOwnerTracking: boolean): SpinLock;
|
|
305
305
|
};
|
|
306
306
|
|
|
307
307
|
|
|
@@ -317,7 +317,7 @@ export interface SpinWait$instance {
|
|
|
317
317
|
|
|
318
318
|
|
|
319
319
|
export const SpinWait: {
|
|
320
|
-
new(): SpinWait
|
|
320
|
+
new(): SpinWait;
|
|
321
321
|
spinUntil(condition: Func_1<System_Internal.Boolean>, millisecondsTimeout: int): boolean;
|
|
322
322
|
spinUntil(condition: Func_1<System_Internal.Boolean>, timeout: TimeSpan): boolean;
|
|
323
323
|
spinUntil(condition: Func_1<System_Internal.Boolean>): void;
|
|
@@ -327,19 +327,19 @@ export const SpinWait: {
|
|
|
327
327
|
export type SpinWait = SpinWait$instance;
|
|
328
328
|
|
|
329
329
|
export interface AbandonedMutexException$instance extends SystemException {
|
|
330
|
-
readonly mutex: Mutex;
|
|
330
|
+
readonly mutex: Mutex | undefined;
|
|
331
331
|
readonly mutexIndex: int;
|
|
332
332
|
getObjectData(info: SerializationInfo, context: StreamingContext): void;
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
|
|
336
336
|
export const AbandonedMutexException: {
|
|
337
|
-
new(): AbandonedMutexException
|
|
338
|
-
new(message: string): AbandonedMutexException
|
|
339
|
-
new(message: string, inner: Exception): AbandonedMutexException
|
|
340
|
-
new(location: int, handle: WaitHandle): AbandonedMutexException
|
|
341
|
-
new(message: string, location: int, handle: WaitHandle): AbandonedMutexException
|
|
342
|
-
new(message: string, inner: Exception, location: int, handle: WaitHandle): AbandonedMutexException
|
|
337
|
+
new(): AbandonedMutexException;
|
|
338
|
+
new(message: string | undefined): AbandonedMutexException;
|
|
339
|
+
new(message: string | undefined, inner: Exception | undefined): AbandonedMutexException;
|
|
340
|
+
new(location: int, handle: WaitHandle | undefined): AbandonedMutexException;
|
|
341
|
+
new(message: string | undefined, location: int, handle: WaitHandle | undefined): AbandonedMutexException;
|
|
342
|
+
new(message: string | undefined, inner: Exception | undefined, location: int, handle: WaitHandle | undefined): AbandonedMutexException;
|
|
343
343
|
};
|
|
344
344
|
|
|
345
345
|
|
|
@@ -356,8 +356,8 @@ export interface AsyncLocal_1$instance<T> {
|
|
|
356
356
|
|
|
357
357
|
|
|
358
358
|
export const AsyncLocal_1: {
|
|
359
|
-
new<T>(): AsyncLocal_1
|
|
360
|
-
new<T>(valueChangedHandler: Action_1<AsyncLocalValueChangedArgs_1<T>>): AsyncLocal_1
|
|
359
|
+
new<T>(): AsyncLocal_1<T>;
|
|
360
|
+
new<T>(valueChangedHandler: Action_1<AsyncLocalValueChangedArgs_1<T>> | undefined): AsyncLocal_1<T>;
|
|
361
361
|
};
|
|
362
362
|
|
|
363
363
|
|
|
@@ -369,7 +369,7 @@ export interface AutoResetEvent$instance extends EventWaitHandle$instance {
|
|
|
369
369
|
|
|
370
370
|
|
|
371
371
|
export const AutoResetEvent: {
|
|
372
|
-
new(initialState: boolean): AutoResetEvent
|
|
372
|
+
new(initialState: boolean): AutoResetEvent;
|
|
373
373
|
};
|
|
374
374
|
|
|
375
375
|
|
|
@@ -399,8 +399,8 @@ export interface Barrier$instance {
|
|
|
399
399
|
|
|
400
400
|
|
|
401
401
|
export const Barrier: {
|
|
402
|
-
new(participantCount: int): Barrier
|
|
403
|
-
new(participantCount: int, postPhaseAction: Action_1<Barrier>): Barrier
|
|
402
|
+
new(participantCount: int): Barrier;
|
|
403
|
+
new(participantCount: int, postPhaseAction: Action_1<Barrier> | undefined): Barrier;
|
|
404
404
|
};
|
|
405
405
|
|
|
406
406
|
|
|
@@ -414,15 +414,15 @@ export type Barrier = Barrier$instance & __Barrier$views;
|
|
|
414
414
|
|
|
415
415
|
|
|
416
416
|
export interface BarrierPostPhaseException$instance extends Exception {
|
|
417
|
-
getObjectData(info: SerializationInfo, context: StreamingContext): void;
|
|
417
|
+
getObjectData(info: SerializationInfo | undefined, context: StreamingContext): void;
|
|
418
418
|
}
|
|
419
419
|
|
|
420
420
|
|
|
421
421
|
export const BarrierPostPhaseException: {
|
|
422
|
-
new(): BarrierPostPhaseException
|
|
423
|
-
new(innerException: Exception): BarrierPostPhaseException
|
|
424
|
-
new(message: string): BarrierPostPhaseException
|
|
425
|
-
new(message: string, innerException: Exception): BarrierPostPhaseException
|
|
422
|
+
new(): BarrierPostPhaseException;
|
|
423
|
+
new(innerException: Exception | undefined): BarrierPostPhaseException;
|
|
424
|
+
new(message: string | undefined): BarrierPostPhaseException;
|
|
425
|
+
new(message: string | undefined, innerException: Exception | undefined): BarrierPostPhaseException;
|
|
426
426
|
};
|
|
427
427
|
|
|
428
428
|
|
|
@@ -447,10 +447,10 @@ export interface CancellationTokenSource$instance {
|
|
|
447
447
|
|
|
448
448
|
|
|
449
449
|
export const CancellationTokenSource: {
|
|
450
|
-
new(): CancellationTokenSource
|
|
451
|
-
new(delay: TimeSpan): CancellationTokenSource
|
|
452
|
-
new(delay: TimeSpan, timeProvider: TimeProvider): CancellationTokenSource
|
|
453
|
-
new(millisecondsDelay: int): CancellationTokenSource
|
|
450
|
+
new(): CancellationTokenSource;
|
|
451
|
+
new(delay: TimeSpan): CancellationTokenSource;
|
|
452
|
+
new(delay: TimeSpan, timeProvider: TimeProvider): CancellationTokenSource;
|
|
453
|
+
new(millisecondsDelay: int): CancellationTokenSource;
|
|
454
454
|
createLinkedTokenSource(tokens: ReadOnlySpan_1<CancellationToken>): CancellationTokenSource;
|
|
455
455
|
createLinkedTokenSource(token1: CancellationToken, token2: CancellationToken): CancellationTokenSource;
|
|
456
456
|
createLinkedTokenSource(token: CancellationToken): CancellationTokenSource;
|
|
@@ -474,10 +474,10 @@ export interface CompressedStack$instance {
|
|
|
474
474
|
|
|
475
475
|
|
|
476
476
|
export const CompressedStack: {
|
|
477
|
-
new(): CompressedStack
|
|
477
|
+
new(): CompressedStack;
|
|
478
478
|
capture(): CompressedStack;
|
|
479
479
|
getCompressedStack(): CompressedStack;
|
|
480
|
-
run(compressedStack: CompressedStack, callback: ContextCallback, state: unknown): void;
|
|
480
|
+
run(compressedStack: CompressedStack, callback: ContextCallback, state: unknown | undefined): void;
|
|
481
481
|
};
|
|
482
482
|
|
|
483
483
|
|
|
@@ -514,7 +514,7 @@ export interface CountdownEvent$instance {
|
|
|
514
514
|
|
|
515
515
|
|
|
516
516
|
export const CountdownEvent: {
|
|
517
|
-
new(initialCount: int): CountdownEvent
|
|
517
|
+
new(initialCount: int): CountdownEvent;
|
|
518
518
|
};
|
|
519
519
|
|
|
520
520
|
|
|
@@ -535,15 +535,15 @@ export interface EventWaitHandle$instance extends WaitHandle$instance {
|
|
|
535
535
|
|
|
536
536
|
|
|
537
537
|
export const EventWaitHandle: {
|
|
538
|
-
new(initialState: boolean, mode: EventResetMode): EventWaitHandle
|
|
539
|
-
new(initialState: boolean, mode: EventResetMode, name: string, options: NamedWaitHandleOptions): EventWaitHandle
|
|
540
|
-
new(initialState: boolean, mode: EventResetMode, name: string): EventWaitHandle
|
|
541
|
-
new(initialState: boolean, mode: EventResetMode, name: string, options: NamedWaitHandleOptions, createdNew: boolean): EventWaitHandle
|
|
542
|
-
new(initialState: boolean, mode: EventResetMode, name: string, createdNew: boolean): EventWaitHandle
|
|
538
|
+
new(initialState: boolean, mode: EventResetMode): EventWaitHandle;
|
|
539
|
+
new(initialState: boolean, mode: EventResetMode, name: string, options: NamedWaitHandleOptions): EventWaitHandle;
|
|
540
|
+
new(initialState: boolean, mode: EventResetMode, name: string): EventWaitHandle;
|
|
541
|
+
new(initialState: boolean, mode: EventResetMode, name: string, options: NamedWaitHandleOptions, createdNew: boolean): EventWaitHandle;
|
|
542
|
+
new(initialState: boolean, mode: EventResetMode, name: string, createdNew: boolean): EventWaitHandle;
|
|
543
543
|
openExisting(name: string, options: NamedWaitHandleOptions): EventWaitHandle;
|
|
544
544
|
openExisting(name: string): EventWaitHandle;
|
|
545
|
-
tryOpenExisting(name: string, result: EventWaitHandle): boolean;
|
|
546
|
-
tryOpenExisting(name: string, options: NamedWaitHandleOptions, result: EventWaitHandle): boolean;
|
|
545
|
+
tryOpenExisting(name: string, result: EventWaitHandle | undefined): boolean;
|
|
546
|
+
tryOpenExisting(name: string, options: NamedWaitHandleOptions, result: EventWaitHandle | undefined): boolean;
|
|
547
547
|
};
|
|
548
548
|
|
|
549
549
|
|
|
@@ -562,12 +562,12 @@ export interface ExecutionContext$instance {
|
|
|
562
562
|
|
|
563
563
|
|
|
564
564
|
export const ExecutionContext: {
|
|
565
|
-
new(): ExecutionContext
|
|
565
|
+
new(): ExecutionContext;
|
|
566
566
|
capture(): ExecutionContext;
|
|
567
567
|
isFlowSuppressed(): boolean;
|
|
568
568
|
restore(executionContext: ExecutionContext): void;
|
|
569
569
|
restoreFlow(): void;
|
|
570
|
-
run(executionContext: ExecutionContext, callback: ContextCallback, state: unknown): void;
|
|
570
|
+
run(executionContext: ExecutionContext, callback: ContextCallback, state: unknown | undefined): void;
|
|
571
571
|
suppressFlow(): AsyncFlowControl;
|
|
572
572
|
};
|
|
573
573
|
|
|
@@ -590,8 +590,8 @@ export interface HostExecutionContext$instance {
|
|
|
590
590
|
|
|
591
591
|
|
|
592
592
|
export const HostExecutionContext: {
|
|
593
|
-
new(): HostExecutionContext
|
|
594
|
-
new(state: unknown): HostExecutionContext
|
|
593
|
+
new(): HostExecutionContext;
|
|
594
|
+
new(state: unknown | undefined): HostExecutionContext;
|
|
595
595
|
};
|
|
596
596
|
|
|
597
597
|
|
|
@@ -610,7 +610,7 @@ export interface HostExecutionContextManager$instance {
|
|
|
610
610
|
|
|
611
611
|
|
|
612
612
|
export const HostExecutionContextManager: {
|
|
613
|
-
new(): HostExecutionContextManager
|
|
613
|
+
new(): HostExecutionContextManager;
|
|
614
614
|
};
|
|
615
615
|
|
|
616
616
|
|
|
@@ -628,21 +628,21 @@ export interface Lock$instance {
|
|
|
628
628
|
|
|
629
629
|
|
|
630
630
|
export const Lock: {
|
|
631
|
-
new(): Lock
|
|
631
|
+
new(): Lock;
|
|
632
632
|
};
|
|
633
633
|
|
|
634
634
|
|
|
635
635
|
export type Lock = Lock$instance;
|
|
636
636
|
|
|
637
637
|
export interface LockRecursionException$instance extends Exception {
|
|
638
|
-
getObjectData(info: SerializationInfo, context: StreamingContext): void;
|
|
638
|
+
getObjectData(info: SerializationInfo | undefined, context: StreamingContext): void;
|
|
639
639
|
}
|
|
640
640
|
|
|
641
641
|
|
|
642
642
|
export const LockRecursionException: {
|
|
643
|
-
new(): LockRecursionException
|
|
644
|
-
new(message: string): LockRecursionException
|
|
645
|
-
new(message: string, innerException: Exception): LockRecursionException
|
|
643
|
+
new(): LockRecursionException;
|
|
644
|
+
new(message: string | undefined): LockRecursionException;
|
|
645
|
+
new(message: string | undefined, innerException: Exception | undefined): LockRecursionException;
|
|
646
646
|
};
|
|
647
647
|
|
|
648
648
|
|
|
@@ -659,7 +659,7 @@ export interface ManualResetEvent$instance extends EventWaitHandle$instance {
|
|
|
659
659
|
|
|
660
660
|
|
|
661
661
|
export const ManualResetEvent: {
|
|
662
|
-
new(initialState: boolean): ManualResetEvent
|
|
662
|
+
new(initialState: boolean): ManualResetEvent;
|
|
663
663
|
};
|
|
664
664
|
|
|
665
665
|
|
|
@@ -687,9 +687,9 @@ export interface ManualResetEventSlim$instance {
|
|
|
687
687
|
|
|
688
688
|
|
|
689
689
|
export const ManualResetEventSlim: {
|
|
690
|
-
new(): ManualResetEventSlim
|
|
691
|
-
new(initialState: boolean): ManualResetEventSlim
|
|
692
|
-
new(initialState: boolean, spinCount: int): ManualResetEventSlim
|
|
690
|
+
new(): ManualResetEventSlim;
|
|
691
|
+
new(initialState: boolean): ManualResetEventSlim;
|
|
692
|
+
new(initialState: boolean, spinCount: int): ManualResetEventSlim;
|
|
693
693
|
};
|
|
694
694
|
|
|
695
695
|
|
|
@@ -709,17 +709,17 @@ export interface Mutex$instance extends WaitHandle$instance {
|
|
|
709
709
|
|
|
710
710
|
|
|
711
711
|
export const Mutex: {
|
|
712
|
-
new(initiallyOwned: boolean, name: string, options: NamedWaitHandleOptions, createdNew: boolean): Mutex
|
|
713
|
-
new(initiallyOwned: boolean, name: string, createdNew: boolean): Mutex
|
|
714
|
-
new(initiallyOwned: boolean, name: string, options: NamedWaitHandleOptions): Mutex
|
|
715
|
-
new(initiallyOwned: boolean, name: string): Mutex
|
|
716
|
-
new(name: string, options: NamedWaitHandleOptions): Mutex
|
|
717
|
-
new(initiallyOwned: boolean): Mutex
|
|
718
|
-
new(): Mutex
|
|
719
|
-
openExisting(name: string, options: NamedWaitHandleOptions): Mutex;
|
|
720
|
-
openExisting(name: string): Mutex;
|
|
721
|
-
tryOpenExisting(name: string, result: Mutex): boolean;
|
|
722
|
-
tryOpenExisting(name: string, options: NamedWaitHandleOptions, result: Mutex): boolean;
|
|
712
|
+
new(initiallyOwned: boolean, name: string | undefined, options: NamedWaitHandleOptions, createdNew: boolean): Mutex;
|
|
713
|
+
new(initiallyOwned: boolean, name: string | undefined, createdNew: boolean): Mutex;
|
|
714
|
+
new(initiallyOwned: boolean, name: string | undefined, options: NamedWaitHandleOptions): Mutex;
|
|
715
|
+
new(initiallyOwned: boolean, name: string | undefined): Mutex;
|
|
716
|
+
new(name: string | undefined, options: NamedWaitHandleOptions): Mutex;
|
|
717
|
+
new(initiallyOwned: boolean): Mutex;
|
|
718
|
+
new(): Mutex;
|
|
719
|
+
openExisting(name: string | undefined, options: NamedWaitHandleOptions): Mutex | undefined;
|
|
720
|
+
openExisting(name: string | undefined): Mutex | undefined;
|
|
721
|
+
tryOpenExisting(name: string | undefined, result: Mutex | undefined): boolean;
|
|
722
|
+
tryOpenExisting(name: string | undefined, options: NamedWaitHandleOptions, result: Mutex | undefined): boolean;
|
|
723
723
|
};
|
|
724
724
|
|
|
725
725
|
|
|
@@ -736,17 +736,17 @@ export interface Overlapped$instance {
|
|
|
736
736
|
eventHandleIntPtr: nint;
|
|
737
737
|
offsetHigh: int;
|
|
738
738
|
offsetLow: int;
|
|
739
|
-
pack(iocb: IOCompletionCallback): ptr<NativeOverlapped>;
|
|
739
|
+
pack(iocb: IOCompletionCallback | undefined): ptr<NativeOverlapped>;
|
|
740
740
|
pack(iocb: IOCompletionCallback, userData: unknown): ptr<NativeOverlapped>;
|
|
741
|
-
unsafePack(iocb: IOCompletionCallback): ptr<NativeOverlapped>;
|
|
741
|
+
unsafePack(iocb: IOCompletionCallback | undefined): ptr<NativeOverlapped>;
|
|
742
742
|
unsafePack(iocb: IOCompletionCallback, userData: unknown): ptr<NativeOverlapped>;
|
|
743
743
|
}
|
|
744
744
|
|
|
745
745
|
|
|
746
746
|
export const Overlapped: {
|
|
747
|
-
new(): Overlapped
|
|
748
|
-
new(offsetLo: int, offsetHi: int, hEvent: nint, ar: IAsyncResult): Overlapped
|
|
749
|
-
new(offsetLo: int, offsetHi: int, hEvent: int, ar: IAsyncResult): Overlapped
|
|
747
|
+
new(): Overlapped;
|
|
748
|
+
new(offsetLo: int, offsetHi: int, hEvent: nint, ar: IAsyncResult): Overlapped;
|
|
749
|
+
new(offsetLo: int, offsetHi: int, hEvent: int, ar: IAsyncResult): Overlapped;
|
|
750
750
|
free(nativeOverlappedPtr: ptr<NativeOverlapped>): void;
|
|
751
751
|
unpack(nativeOverlappedPtr: ptr<NativeOverlapped>): Overlapped;
|
|
752
752
|
};
|
|
@@ -762,8 +762,8 @@ export interface PeriodicTimer$instance {
|
|
|
762
762
|
|
|
763
763
|
|
|
764
764
|
export const PeriodicTimer: {
|
|
765
|
-
new(period: TimeSpan): PeriodicTimer
|
|
766
|
-
new(period: TimeSpan, timeProvider: TimeProvider): PeriodicTimer
|
|
765
|
+
new(period: TimeSpan): PeriodicTimer;
|
|
766
|
+
new(period: TimeSpan, timeProvider: TimeProvider): PeriodicTimer;
|
|
767
767
|
};
|
|
768
768
|
|
|
769
769
|
|
|
@@ -782,8 +782,8 @@ export interface PreAllocatedOverlapped$instance {
|
|
|
782
782
|
|
|
783
783
|
|
|
784
784
|
export const PreAllocatedOverlapped: {
|
|
785
|
-
new(callback: IOCompletionCallback, state: unknown, pinData: unknown): PreAllocatedOverlapped
|
|
786
|
-
unsafeCreate(callback: IOCompletionCallback, state: unknown, pinData: unknown): PreAllocatedOverlapped;
|
|
785
|
+
new(callback: IOCompletionCallback, state: unknown, pinData: unknown): PreAllocatedOverlapped;
|
|
786
|
+
unsafeCreate(callback: IOCompletionCallback, state: unknown | undefined, pinData: unknown | undefined): PreAllocatedOverlapped;
|
|
787
787
|
};
|
|
788
788
|
|
|
789
789
|
|
|
@@ -816,7 +816,7 @@ export interface ReaderWriterLock$instance extends CriticalFinalizerObject {
|
|
|
816
816
|
|
|
817
817
|
|
|
818
818
|
export const ReaderWriterLock: {
|
|
819
|
-
new(): ReaderWriterLock
|
|
819
|
+
new(): ReaderWriterLock;
|
|
820
820
|
};
|
|
821
821
|
|
|
822
822
|
|
|
@@ -851,8 +851,8 @@ export interface ReaderWriterLockSlim$instance {
|
|
|
851
851
|
|
|
852
852
|
|
|
853
853
|
export const ReaderWriterLockSlim: {
|
|
854
|
-
new(): ReaderWriterLockSlim
|
|
855
|
-
new(recursionPolicy: LockRecursionPolicy): ReaderWriterLockSlim
|
|
854
|
+
new(): ReaderWriterLockSlim;
|
|
855
|
+
new(recursionPolicy: LockRecursionPolicy): ReaderWriterLockSlim;
|
|
856
856
|
};
|
|
857
857
|
|
|
858
858
|
|
|
@@ -866,12 +866,12 @@ export type ReaderWriterLockSlim = ReaderWriterLockSlim$instance & __ReaderWrite
|
|
|
866
866
|
|
|
867
867
|
|
|
868
868
|
export interface RegisteredWaitHandle$instance extends MarshalByRefObject {
|
|
869
|
-
unregister(waitObject: WaitHandle): boolean;
|
|
869
|
+
unregister(waitObject: WaitHandle | undefined): boolean;
|
|
870
870
|
}
|
|
871
871
|
|
|
872
872
|
|
|
873
873
|
export const RegisteredWaitHandle: {
|
|
874
|
-
new(): RegisteredWaitHandle
|
|
874
|
+
new(): RegisteredWaitHandle;
|
|
875
875
|
};
|
|
876
876
|
|
|
877
877
|
|
|
@@ -885,15 +885,15 @@ export interface Semaphore$instance extends WaitHandle$instance {
|
|
|
885
885
|
|
|
886
886
|
|
|
887
887
|
export const Semaphore: {
|
|
888
|
-
new(initialCount: int, maximumCount: int): Semaphore
|
|
889
|
-
new(initialCount: int, maximumCount: int, name: string, options: NamedWaitHandleOptions): Semaphore
|
|
890
|
-
new(initialCount: int, maximumCount: int, name: string): Semaphore
|
|
891
|
-
new(initialCount: int, maximumCount: int, name: string, options: NamedWaitHandleOptions, createdNew: boolean): Semaphore
|
|
892
|
-
new(initialCount: int, maximumCount: int, name: string, createdNew: boolean): Semaphore
|
|
888
|
+
new(initialCount: int, maximumCount: int): Semaphore;
|
|
889
|
+
new(initialCount: int, maximumCount: int, name: string, options: NamedWaitHandleOptions): Semaphore;
|
|
890
|
+
new(initialCount: int, maximumCount: int, name: string): Semaphore;
|
|
891
|
+
new(initialCount: int, maximumCount: int, name: string, options: NamedWaitHandleOptions, createdNew: boolean): Semaphore;
|
|
892
|
+
new(initialCount: int, maximumCount: int, name: string, createdNew: boolean): Semaphore;
|
|
893
893
|
openExisting(name: string, options: NamedWaitHandleOptions): Semaphore;
|
|
894
894
|
openExisting(name: string): Semaphore;
|
|
895
|
-
tryOpenExisting(name: string, options: NamedWaitHandleOptions, result: Semaphore): boolean;
|
|
896
|
-
tryOpenExisting(name: string, result: Semaphore): boolean;
|
|
895
|
+
tryOpenExisting(name: string, options: NamedWaitHandleOptions, result: Semaphore | undefined): boolean;
|
|
896
|
+
tryOpenExisting(name: string, result: Semaphore | undefined): boolean;
|
|
897
897
|
};
|
|
898
898
|
|
|
899
899
|
|
|
@@ -910,9 +910,9 @@ export interface SemaphoreFullException$instance extends SystemException {
|
|
|
910
910
|
|
|
911
911
|
|
|
912
912
|
export const SemaphoreFullException: {
|
|
913
|
-
new(): SemaphoreFullException
|
|
914
|
-
new(message: string): SemaphoreFullException
|
|
915
|
-
new(message: string, innerException: Exception): SemaphoreFullException
|
|
913
|
+
new(): SemaphoreFullException;
|
|
914
|
+
new(message: string | undefined): SemaphoreFullException;
|
|
915
|
+
new(message: string | undefined, innerException: Exception | undefined): SemaphoreFullException;
|
|
916
916
|
};
|
|
917
917
|
|
|
918
918
|
|
|
@@ -945,8 +945,8 @@ export interface SemaphoreSlim$instance {
|
|
|
945
945
|
|
|
946
946
|
|
|
947
947
|
export const SemaphoreSlim: {
|
|
948
|
-
new(initialCount: int): SemaphoreSlim
|
|
949
|
-
new(initialCount: int, maxCount: int): SemaphoreSlim
|
|
948
|
+
new(initialCount: int): SemaphoreSlim;
|
|
949
|
+
new(initialCount: int, maxCount: int): SemaphoreSlim;
|
|
950
950
|
};
|
|
951
951
|
|
|
952
952
|
|
|
@@ -964,15 +964,15 @@ export interface SynchronizationContext$instance {
|
|
|
964
964
|
isWaitNotificationRequired(): boolean;
|
|
965
965
|
operationCompleted(): void;
|
|
966
966
|
operationStarted(): void;
|
|
967
|
-
post(d: SendOrPostCallback, state: unknown): void;
|
|
968
|
-
send(d: SendOrPostCallback, state: unknown): void;
|
|
967
|
+
post(d: SendOrPostCallback, state: unknown | undefined): void;
|
|
968
|
+
send(d: SendOrPostCallback, state: unknown | undefined): void;
|
|
969
969
|
wait(waitHandles: nint[], waitAll: boolean, millisecondsTimeout: int): int;
|
|
970
970
|
}
|
|
971
971
|
|
|
972
972
|
|
|
973
973
|
export const SynchronizationContext: {
|
|
974
|
-
new(): SynchronizationContext
|
|
975
|
-
readonly current: SynchronizationContext;
|
|
974
|
+
new(): SynchronizationContext;
|
|
975
|
+
readonly current: SynchronizationContext | undefined;
|
|
976
976
|
setSynchronizationContext(syncContext: SynchronizationContext): void;
|
|
977
977
|
};
|
|
978
978
|
|
|
@@ -985,9 +985,9 @@ export interface SynchronizationLockException$instance extends SystemException {
|
|
|
985
985
|
|
|
986
986
|
|
|
987
987
|
export const SynchronizationLockException: {
|
|
988
|
-
new(): SynchronizationLockException
|
|
989
|
-
new(message: string): SynchronizationLockException
|
|
990
|
-
new(message: string, innerException: Exception): SynchronizationLockException
|
|
988
|
+
new(): SynchronizationLockException;
|
|
989
|
+
new(message: string | undefined): SynchronizationLockException;
|
|
990
|
+
new(message: string | undefined, innerException: Exception | undefined): SynchronizationLockException;
|
|
991
991
|
};
|
|
992
992
|
|
|
993
993
|
|
|
@@ -1002,7 +1002,7 @@ export interface Thread$instance extends CriticalFinalizerObject {
|
|
|
1002
1002
|
apartmentState: ApartmentState;
|
|
1003
1003
|
currentCulture: CultureInfo;
|
|
1004
1004
|
currentUICulture: CultureInfo;
|
|
1005
|
-
readonly executionContext: ExecutionContext;
|
|
1005
|
+
readonly executionContext: ExecutionContext | undefined;
|
|
1006
1006
|
readonly isAlive: boolean;
|
|
1007
1007
|
isBackground: boolean;
|
|
1008
1008
|
readonly isThreadPoolThread: boolean;
|
|
@@ -1033,11 +1033,11 @@ export interface Thread$instance extends CriticalFinalizerObject {
|
|
|
1033
1033
|
|
|
1034
1034
|
|
|
1035
1035
|
export const Thread: {
|
|
1036
|
-
new(start: ThreadStart): Thread
|
|
1037
|
-
new(start: ThreadStart, maxStackSize: int): Thread
|
|
1038
|
-
new(start: ParameterizedThreadStart): Thread
|
|
1039
|
-
new(start: ParameterizedThreadStart, maxStackSize: int): Thread
|
|
1040
|
-
currentPrincipal: IPrincipal;
|
|
1036
|
+
new(start: ThreadStart): Thread;
|
|
1037
|
+
new(start: ThreadStart, maxStackSize: int): Thread;
|
|
1038
|
+
new(start: ParameterizedThreadStart): Thread;
|
|
1039
|
+
new(start: ParameterizedThreadStart, maxStackSize: int): Thread;
|
|
1040
|
+
currentPrincipal: IPrincipal | undefined;
|
|
1041
1041
|
readonly currentThread: Thread;
|
|
1042
1042
|
allocateDataSlot(): LocalDataStoreSlot;
|
|
1043
1043
|
allocateNamedDataSlot(name: string): LocalDataStoreSlot;
|
|
@@ -1047,13 +1047,13 @@ export const Thread: {
|
|
|
1047
1047
|
endThreadAffinity(): void;
|
|
1048
1048
|
freeNamedDataSlot(name: string): void;
|
|
1049
1049
|
getCurrentProcessorId(): int;
|
|
1050
|
-
getData(slot: LocalDataStoreSlot): unknown;
|
|
1050
|
+
getData(slot: LocalDataStoreSlot): unknown | undefined;
|
|
1051
1051
|
getDomain(): AppDomain;
|
|
1052
1052
|
getDomainID(): int;
|
|
1053
1053
|
getNamedDataSlot(name: string): LocalDataStoreSlot;
|
|
1054
1054
|
memoryBarrier(): void;
|
|
1055
1055
|
resetAbort(): void;
|
|
1056
|
-
setData(slot: LocalDataStoreSlot, data: unknown): void;
|
|
1056
|
+
setData(slot: LocalDataStoreSlot, data: unknown | undefined): void;
|
|
1057
1057
|
sleep(millisecondsTimeout: int): void;
|
|
1058
1058
|
sleep(timeout: TimeSpan): void;
|
|
1059
1059
|
spinWait(iterations: int): void;
|
|
@@ -1090,13 +1090,13 @@ export const Thread: {
|
|
|
1090
1090
|
export type Thread = Thread$instance;
|
|
1091
1091
|
|
|
1092
1092
|
export interface ThreadAbortException$instance extends SystemException {
|
|
1093
|
-
readonly exceptionState: unknown;
|
|
1093
|
+
readonly exceptionState: unknown | undefined;
|
|
1094
1094
|
getObjectData(info: SerializationInfo, context: StreamingContext): void;
|
|
1095
1095
|
}
|
|
1096
1096
|
|
|
1097
1097
|
|
|
1098
1098
|
export const ThreadAbortException: {
|
|
1099
|
-
new(): ThreadAbortException
|
|
1099
|
+
new(): ThreadAbortException;
|
|
1100
1100
|
};
|
|
1101
1101
|
|
|
1102
1102
|
|
|
@@ -1113,7 +1113,7 @@ export interface ThreadExceptionEventArgs$instance extends EventArgs {
|
|
|
1113
1113
|
|
|
1114
1114
|
|
|
1115
1115
|
export const ThreadExceptionEventArgs: {
|
|
1116
|
-
new(t: Exception): ThreadExceptionEventArgs
|
|
1116
|
+
new(t: Exception): ThreadExceptionEventArgs;
|
|
1117
1117
|
};
|
|
1118
1118
|
|
|
1119
1119
|
|
|
@@ -1125,9 +1125,9 @@ export interface ThreadInterruptedException$instance extends SystemException {
|
|
|
1125
1125
|
|
|
1126
1126
|
|
|
1127
1127
|
export const ThreadInterruptedException: {
|
|
1128
|
-
new(): ThreadInterruptedException
|
|
1129
|
-
new(message: string): ThreadInterruptedException
|
|
1130
|
-
new(message: string, innerException: Exception): ThreadInterruptedException
|
|
1128
|
+
new(): ThreadInterruptedException;
|
|
1129
|
+
new(message: string | undefined): ThreadInterruptedException;
|
|
1130
|
+
new(message: string | undefined, innerException: Exception | undefined): ThreadInterruptedException;
|
|
1131
1131
|
};
|
|
1132
1132
|
|
|
1133
1133
|
|
|
@@ -1148,10 +1148,10 @@ export interface ThreadLocal_1$instance<T> {
|
|
|
1148
1148
|
|
|
1149
1149
|
|
|
1150
1150
|
export const ThreadLocal_1: {
|
|
1151
|
-
new<T>(): ThreadLocal_1
|
|
1152
|
-
new<T>(trackAllValues: boolean): ThreadLocal_1
|
|
1153
|
-
new<T>(valueFactory: Func_1<T>): ThreadLocal_1
|
|
1154
|
-
new<T>(valueFactory: Func_1<T>, trackAllValues: boolean): ThreadLocal_1
|
|
1151
|
+
new<T>(): ThreadLocal_1<T>;
|
|
1152
|
+
new<T>(trackAllValues: boolean): ThreadLocal_1<T>;
|
|
1153
|
+
new<T>(valueFactory: Func_1<T>): ThreadLocal_1<T>;
|
|
1154
|
+
new<T>(valueFactory: Func_1<T>, trackAllValues: boolean): ThreadLocal_1<T>;
|
|
1155
1155
|
};
|
|
1156
1156
|
|
|
1157
1157
|
|
|
@@ -1175,9 +1175,9 @@ export interface ThreadPoolBoundHandle$instance {
|
|
|
1175
1175
|
|
|
1176
1176
|
|
|
1177
1177
|
export const ThreadPoolBoundHandle: {
|
|
1178
|
-
new(): ThreadPoolBoundHandle
|
|
1178
|
+
new(): ThreadPoolBoundHandle;
|
|
1179
1179
|
bindHandle(handle: SafeHandle): ThreadPoolBoundHandle;
|
|
1180
|
-
getNativeOverlappedState(overlapped: ptr<NativeOverlapped>): unknown;
|
|
1180
|
+
getNativeOverlappedState(overlapped: ptr<NativeOverlapped>): unknown | undefined;
|
|
1181
1181
|
};
|
|
1182
1182
|
|
|
1183
1183
|
|
|
@@ -1196,7 +1196,7 @@ export interface ThreadStartException$instance extends SystemException {
|
|
|
1196
1196
|
|
|
1197
1197
|
|
|
1198
1198
|
export const ThreadStartException: {
|
|
1199
|
-
new(): ThreadStartException
|
|
1199
|
+
new(): ThreadStartException;
|
|
1200
1200
|
};
|
|
1201
1201
|
|
|
1202
1202
|
|
|
@@ -1213,9 +1213,9 @@ export interface ThreadStateException$instance extends SystemException {
|
|
|
1213
1213
|
|
|
1214
1214
|
|
|
1215
1215
|
export const ThreadStateException: {
|
|
1216
|
-
new(): ThreadStateException
|
|
1217
|
-
new(message: string): ThreadStateException
|
|
1218
|
-
new(message: string, innerException: Exception): ThreadStateException
|
|
1216
|
+
new(): ThreadStateException;
|
|
1217
|
+
new(message: string | undefined): ThreadStateException;
|
|
1218
|
+
new(message: string | undefined, innerException: Exception | undefined): ThreadStateException;
|
|
1219
1219
|
};
|
|
1220
1220
|
|
|
1221
1221
|
|
|
@@ -1238,11 +1238,11 @@ export interface Timer$instance extends MarshalByRefObject {
|
|
|
1238
1238
|
|
|
1239
1239
|
|
|
1240
1240
|
export const Timer: {
|
|
1241
|
-
new(callback: TimerCallback, state: unknown, dueTime: int, period: int): Timer
|
|
1242
|
-
new(callback: TimerCallback, state: unknown, dueTime: TimeSpan, period: TimeSpan): Timer
|
|
1243
|
-
new(callback: TimerCallback, state: unknown, dueTime: uint, period: uint): Timer
|
|
1244
|
-
new(callback: TimerCallback, state: unknown, dueTime: long, period: long): Timer
|
|
1245
|
-
new(callback: TimerCallback): Timer
|
|
1241
|
+
new(callback: TimerCallback, state: unknown | undefined, dueTime: int, period: int): Timer;
|
|
1242
|
+
new(callback: TimerCallback, state: unknown | undefined, dueTime: TimeSpan, period: TimeSpan): Timer;
|
|
1243
|
+
new(callback: TimerCallback, state: unknown | undefined, dueTime: uint, period: uint): Timer;
|
|
1244
|
+
new(callback: TimerCallback, state: unknown | undefined, dueTime: long, period: long): Timer;
|
|
1245
|
+
new(callback: TimerCallback): Timer;
|
|
1246
1246
|
readonly activeCount: long;
|
|
1247
1247
|
};
|
|
1248
1248
|
|
|
@@ -1302,9 +1302,9 @@ export interface WaitHandleCannotBeOpenedException$instance extends ApplicationE
|
|
|
1302
1302
|
|
|
1303
1303
|
|
|
1304
1304
|
export const WaitHandleCannotBeOpenedException: {
|
|
1305
|
-
new(): WaitHandleCannotBeOpenedException
|
|
1306
|
-
new(message: string): WaitHandleCannotBeOpenedException
|
|
1307
|
-
new(message: string, innerException: Exception): WaitHandleCannotBeOpenedException
|
|
1305
|
+
new(): WaitHandleCannotBeOpenedException;
|
|
1306
|
+
new(message: string | undefined): WaitHandleCannotBeOpenedException;
|
|
1307
|
+
new(message: string | undefined, innerException: Exception | undefined): WaitHandleCannotBeOpenedException;
|
|
1308
1308
|
};
|
|
1309
1309
|
|
|
1310
1310
|
|
|
@@ -1318,7 +1318,7 @@ export type WaitHandleCannotBeOpenedException = WaitHandleCannotBeOpenedExceptio
|
|
|
1318
1318
|
export abstract class EventWaitHandleAcl$instance {
|
|
1319
1319
|
static create(initialState: boolean, mode: EventResetMode, name: string, createdNew: boolean, eventSecurity: EventWaitHandleSecurity): EventWaitHandle;
|
|
1320
1320
|
static openExisting(name: string, rights: EventWaitHandleRights): EventWaitHandle;
|
|
1321
|
-
static tryOpenExisting(name: string, rights: EventWaitHandleRights, result: EventWaitHandle): boolean;
|
|
1321
|
+
static tryOpenExisting(name: string, rights: EventWaitHandleRights, result: EventWaitHandle | undefined): boolean;
|
|
1322
1322
|
}
|
|
1323
1323
|
|
|
1324
1324
|
|
|
@@ -1383,11 +1383,11 @@ export abstract class Interlocked$instance {
|
|
|
1383
1383
|
export type Interlocked = Interlocked$instance;
|
|
1384
1384
|
|
|
1385
1385
|
export abstract class LazyInitializer$instance {
|
|
1386
|
-
static ensureInitialized<T>(target: T, valueFactory: Func_1<T>): T;
|
|
1387
|
-
static ensureInitialized<T>(target: T, initialized: boolean, syncLock: unknown, valueFactory: Func_1<T>): T;
|
|
1388
|
-
static ensureInitialized<T>(target: T, initialized: boolean, syncLock: unknown): T;
|
|
1389
|
-
static ensureInitialized<T>(target: T, syncLock: unknown, valueFactory: Func_1<T>): T;
|
|
1390
|
-
static ensureInitialized<T>(target: T): T;
|
|
1386
|
+
static ensureInitialized<T>(target: T | undefined, valueFactory: Func_1<T>): T;
|
|
1387
|
+
static ensureInitialized<T>(target: T, initialized: boolean, syncLock: unknown | undefined, valueFactory: Func_1<T>): T;
|
|
1388
|
+
static ensureInitialized<T>(target: T, initialized: boolean, syncLock: unknown | undefined): T;
|
|
1389
|
+
static ensureInitialized<T>(target: T | undefined, syncLock: unknown | undefined, valueFactory: Func_1<T>): T;
|
|
1390
|
+
static ensureInitialized<T>(target: T | undefined): T;
|
|
1391
1391
|
}
|
|
1392
1392
|
|
|
1393
1393
|
|
|
@@ -1420,7 +1420,7 @@ export type Monitor = Monitor$instance;
|
|
|
1420
1420
|
export abstract class MutexAcl$instance {
|
|
1421
1421
|
static create(initiallyOwned: boolean, name: string, createdNew: boolean, mutexSecurity: MutexSecurity): Mutex;
|
|
1422
1422
|
static openExisting(name: string, rights: MutexRights): Mutex;
|
|
1423
|
-
static tryOpenExisting(name: string, rights: MutexRights, result: Mutex): boolean;
|
|
1423
|
+
static tryOpenExisting(name: string, rights: MutexRights, result: Mutex | undefined): boolean;
|
|
1424
1424
|
}
|
|
1425
1425
|
|
|
1426
1426
|
|
|
@@ -1429,7 +1429,7 @@ export type MutexAcl = MutexAcl$instance;
|
|
|
1429
1429
|
export abstract class SemaphoreAcl$instance {
|
|
1430
1430
|
static create(initialCount: int, maximumCount: int, name: string, createdNew: boolean, semaphoreSecurity: SemaphoreSecurity): Semaphore;
|
|
1431
1431
|
static openExisting(name: string, rights: SemaphoreRights): Semaphore;
|
|
1432
|
-
static tryOpenExisting(name: string, rights: SemaphoreRights, result: Semaphore): boolean;
|
|
1432
|
+
static tryOpenExisting(name: string, rights: SemaphoreRights, result: Semaphore | undefined): boolean;
|
|
1433
1433
|
}
|
|
1434
1434
|
|
|
1435
1435
|
|
|
@@ -1457,22 +1457,22 @@ export abstract class ThreadPool$instance {
|
|
|
1457
1457
|
static getMaxThreads(workerThreads: int, completionPortThreads: int): void;
|
|
1458
1458
|
static getMinThreads(workerThreads: int, completionPortThreads: int): void;
|
|
1459
1459
|
static queueUserWorkItem<TState>(callBack: Action_1<TState>, state: TState, preferLocal: boolean): boolean;
|
|
1460
|
-
static queueUserWorkItem(callBack: WaitCallback, state: unknown): boolean;
|
|
1460
|
+
static queueUserWorkItem(callBack: WaitCallback, state: unknown | undefined): boolean;
|
|
1461
1461
|
static queueUserWorkItem(callBack: WaitCallback): boolean;
|
|
1462
|
-
static registerWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, millisecondsTimeOutInterval: int, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1463
|
-
static registerWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, millisecondsTimeOutInterval: long, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1464
|
-
static registerWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, timeout: TimeSpan, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1465
|
-
static registerWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, millisecondsTimeOutInterval: uint, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1462
|
+
static registerWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | undefined, millisecondsTimeOutInterval: int, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1463
|
+
static registerWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | undefined, millisecondsTimeOutInterval: long, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1464
|
+
static registerWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | undefined, timeout: TimeSpan, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1465
|
+
static registerWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | undefined, millisecondsTimeOutInterval: uint, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1466
1466
|
static setMaxThreads(workerThreads: int, completionPortThreads: int): boolean;
|
|
1467
1467
|
static setMinThreads(workerThreads: int, completionPortThreads: int): boolean;
|
|
1468
1468
|
static unsafeQueueNativeOverlapped(overlapped: ptr<NativeOverlapped>): boolean;
|
|
1469
1469
|
static unsafeQueueUserWorkItem<TState>(callBack: Action_1<TState>, state: TState, preferLocal: boolean): boolean;
|
|
1470
1470
|
static unsafeQueueUserWorkItem(callBack: IThreadPoolWorkItem, preferLocal: boolean): boolean;
|
|
1471
|
-
static unsafeQueueUserWorkItem(callBack: WaitCallback, state: unknown): boolean;
|
|
1472
|
-
static unsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, millisecondsTimeOutInterval: int, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1473
|
-
static unsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, millisecondsTimeOutInterval: long, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1474
|
-
static unsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, timeout: TimeSpan, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1475
|
-
static unsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, millisecondsTimeOutInterval: uint, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1471
|
+
static unsafeQueueUserWorkItem(callBack: WaitCallback, state: unknown | undefined): boolean;
|
|
1472
|
+
static unsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | undefined, millisecondsTimeOutInterval: int, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1473
|
+
static unsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | undefined, millisecondsTimeOutInterval: long, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1474
|
+
static unsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | undefined, timeout: TimeSpan, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1475
|
+
static unsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | undefined, millisecondsTimeOutInterval: uint, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1476
1476
|
}
|
|
1477
1477
|
|
|
1478
1478
|
|
|
@@ -1524,7 +1524,7 @@ export type Volatile = Volatile$instance;
|
|
|
1524
1524
|
|
|
1525
1525
|
export abstract class WaitHandleExtensions$instance {
|
|
1526
1526
|
static getSafeWaitHandle(waitHandle: WaitHandle): SafeWaitHandle;
|
|
1527
|
-
static setSafeWaitHandle(waitHandle: WaitHandle, value: SafeWaitHandle): void;
|
|
1527
|
+
static setSafeWaitHandle(waitHandle: WaitHandle, value: SafeWaitHandle | undefined): void;
|
|
1528
1528
|
}
|
|
1529
1529
|
|
|
1530
1530
|
|