@tsonic/dotnet 0.8.1 → 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 +18 -18
- package/Microsoft.VisualBasic/internal/index.d.ts +1 -1
- package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +1 -1
- package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +1 -1
- package/Microsoft.Win32/internal/index.d.ts +11 -11
- package/System/bindings.json +114 -114
- package/System/internal/index.d.ts +994 -1006
- package/System/internal/metadata.json +73 -73
- package/System.Buffers/internal/index.d.ts +3 -3
- package/System.CodeDom.Compiler/internal/index.d.ts +11 -11
- package/System.Collections/internal/index.d.ts +26 -28
- package/System.Collections.Concurrent/internal/index.d.ts +10 -10
- package/System.Collections.Frozen/bindings.json +20 -20
- package/System.Collections.Frozen/internal/index.d.ts +6 -6
- 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 +68 -60
- package/System.Collections.Generic/internal/metadata.json +26 -10
- package/System.Collections.Immutable/internal/index.d.ts +99 -99
- package/System.Collections.ObjectModel/internal/index.d.ts +15 -15
- package/System.Collections.Specialized/internal/index.d.ts +63 -65
- package/System.ComponentModel/internal/index.d.ts +428 -430
- package/System.ComponentModel.DataAnnotations/internal/index.d.ts +66 -66
- package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +2 -2
- package/System.ComponentModel.Design/internal/index.d.ts +72 -72
- package/System.ComponentModel.Design.Serialization/internal/index.d.ts +33 -33
- package/System.Data/internal/index.d.ts +168 -168
- package/System.Data.Common/internal/index.d.ts +48 -48
- package/System.Data.SqlTypes/internal/index.d.ts +21 -21
- package/System.Diagnostics/internal/index.d.ts +262 -262
- package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +25 -25
- package/System.Diagnostics.Contracts/internal/index.d.ts +8 -8
- package/System.Diagnostics.Metrics/internal/index.d.ts +33 -33
- package/System.Diagnostics.SymbolStore/internal/index.d.ts +5 -5
- package/System.Diagnostics.Tracing/internal/index.d.ts +28 -28
- package/System.Drawing/internal/index.d.ts +77 -77
- package/System.Dynamic/internal/index.d.ts +27 -27
- package/System.Formats.Asn1/internal/index.d.ts +4 -4
- package/System.Formats.Tar/internal/index.d.ts +3 -3
- package/System.Globalization/internal/index.d.ts +18 -18
- package/System.IO/internal/index.d.ts +107 -107
- package/System.IO.Compression/internal/index.d.ts +25 -25
- package/System.IO.Enumeration/internal/index.d.ts +5 -5
- package/System.IO.IsolatedStorage/internal/index.d.ts +9 -9
- package/System.IO.MemoryMappedFiles/internal/index.d.ts +8 -8
- package/System.IO.Pipelines/internal/index.d.ts +5 -5
- package/System.IO.Pipes/internal/index.d.ts +4 -4
- package/System.Linq/internal/index.d.ts +180 -180
- package/System.Linq.Expressions/internal/index.d.ts +169 -169
- package/System.Linq.Expressions.Interpreter/internal/index.d.ts +2 -2
- package/System.Net/internal/index.d.ts +151 -153
- package/System.Net.Cache/internal/index.d.ts +2 -2
- package/System.Net.Http/internal/index.d.ts +58 -58
- package/System.Net.Http.Headers/internal/index.d.ts +48 -48
- package/System.Net.Http.Json/internal/index.d.ts +58 -58
- package/System.Net.Http.Metrics/internal/index.d.ts +1 -1
- package/System.Net.Mail/internal/index.d.ts +72 -72
- package/System.Net.Mime/internal/index.d.ts +2 -2
- package/System.Net.NetworkInformation/internal/index.d.ts +24 -24
- package/System.Net.Quic/internal/index.d.ts +4 -4
- package/System.Net.Security/internal/index.d.ts +52 -52
- package/System.Net.ServerSentEvents/internal/index.d.ts +2 -2
- package/System.Net.Sockets/internal/index.d.ts +41 -41
- package/System.Net.WebSockets/internal/index.d.ts +34 -34
- package/System.Numerics/bindings.json +384 -0
- package/System.Numerics/internal/index.d.ts +91 -93
- package/System.Numerics/internal/metadata.json +256 -0
- package/System.Reflection/internal/index.d.ts +219 -219
- package/System.Reflection.Emit/internal/index.d.ts +118 -118
- package/System.Reflection.Metadata/bindings.json +48 -0
- package/System.Reflection.Metadata/internal/index.d.ts +14 -14
- package/System.Reflection.Metadata/internal/metadata.json +32 -0
- package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +5 -5
- package/System.Reflection.PortableExecutable/internal/index.d.ts +4 -4
- package/System.Resources/internal/index.d.ts +24 -24
- package/System.Runtime/internal/index.d.ts +5 -5
- package/System.Runtime.CompilerServices/internal/index.d.ts +31 -31
- package/System.Runtime.InteropServices/bindings.json +22 -22
- package/System.Runtime.InteropServices/internal/index.d.ts +93 -93
- package/System.Runtime.InteropServices/internal/metadata.json +13 -13
- package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +10 -10
- package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +23 -23
- package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +36 -36
- package/System.Runtime.Loader/internal/index.d.ts +6 -6
- package/System.Runtime.Remoting/internal/index.d.ts +2 -2
- package/System.Runtime.Serialization/internal/index.d.ts +77 -79
- package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +16 -16
- package/System.Runtime.Serialization.Formatters/internal/index.d.ts +2 -2
- package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +4 -4
- package/System.Runtime.Serialization.Json/internal/index.d.ts +26 -26
- package/System.Runtime.Versioning/internal/index.d.ts +9 -9
- package/System.Security/internal/index.d.ts +49 -49
- package/System.Security.AccessControl/internal/index.d.ts +31 -31
- package/System.Security.Authentication/internal/index.d.ts +4 -4
- package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +10 -10
- package/System.Security.Claims/internal/index.d.ts +23 -25
- package/System.Security.Cryptography/internal/index.d.ts +189 -189
- package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +71 -71
- package/System.Security.Policy/internal/index.d.ts +2 -2
- package/System.Security.Principal/internal/index.d.ts +9 -11
- package/System.Text/internal/index.d.ts +51 -51
- package/System.Text.Json/internal/index.d.ts +83 -83
- package/System.Text.Json.Nodes/internal/index.d.ts +65 -65
- package/System.Text.Json.Schema/internal/index.d.ts +5 -5
- package/System.Text.Json.Serialization/internal/index.d.ts +10 -10
- package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +47 -47
- package/System.Text.RegularExpressions/internal/index.d.ts +5 -5
- package/System.Text.Unicode/internal/index.d.ts +4 -4
- package/System.Threading/internal/index.d.ts +87 -87
- package/System.Threading.Channels/internal/index.d.ts +8 -8
- package/System.Threading.Tasks/internal/index.d.ts +84 -94
- package/System.Threading.Tasks.Dataflow/internal/index.d.ts +29 -26
- package/System.Threading.Tasks.Sources/internal/index.d.ts +4 -4
- package/System.Timers/internal/index.d.ts +3 -3
- package/System.Transactions/internal/index.d.ts +20 -20
- package/System.Web/internal/index.d.ts +31 -31
- package/System.Windows.Input/internal/index.d.ts +2 -2
- package/System.Xml/internal/index.d.ts +215 -215
- package/System.Xml.Linq/internal/index.d.ts +51 -51
- package/System.Xml.Resolvers/internal/index.d.ts +4 -4
- package/System.Xml.Schema/internal/index.d.ts +105 -105
- package/System.Xml.Serialization/internal/index.d.ts +136 -136
- package/System.Xml.XPath/internal/index.d.ts +19 -19
- package/System.Xml.Xsl/internal/index.d.ts +41 -41
- package/System.Xml.Xsl.Runtime/internal/index.d.ts +20 -20
- package/__internal/extensions/index.d.ts +415 -414
- package/package.json +1 -1
|
@@ -147,8 +147,8 @@ 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
|
|
|
@@ -165,16 +165,16 @@ export interface CancellationToken$instance {
|
|
|
165
165
|
readonly isCancellationRequested: boolean;
|
|
166
166
|
readonly waitHandle: WaitHandle;
|
|
167
167
|
equals(other: CancellationToken): boolean;
|
|
168
|
-
equals(other: unknown): 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
|
|
|
@@ -327,7 +327,7 @@ 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
|
}
|
|
@@ -335,11 +335,11 @@ export interface AbandonedMutexException$instance extends SystemException {
|
|
|
335
335
|
|
|
336
336
|
export const AbandonedMutexException: {
|
|
337
337
|
new(): AbandonedMutexException;
|
|
338
|
-
new(message: string): 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;
|
|
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
|
|
|
@@ -357,7 +357,7 @@ export interface AsyncLocal_1$instance<T> {
|
|
|
357
357
|
|
|
358
358
|
export const AsyncLocal_1: {
|
|
359
359
|
new<T>(): AsyncLocal_1<T>;
|
|
360
|
-
new<T>(valueChangedHandler: Action_1<AsyncLocalValueChangedArgs_1<T>>): AsyncLocal_1<T>;
|
|
360
|
+
new<T>(valueChangedHandler: Action_1<AsyncLocalValueChangedArgs_1<T>> | undefined): AsyncLocal_1<T>;
|
|
361
361
|
};
|
|
362
362
|
|
|
363
363
|
|
|
@@ -400,7 +400,7 @@ export interface Barrier$instance {
|
|
|
400
400
|
|
|
401
401
|
export const Barrier: {
|
|
402
402
|
new(participantCount: int): Barrier;
|
|
403
|
-
new(participantCount: int, postPhaseAction: Action_1<Barrier>): 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
422
|
new(): BarrierPostPhaseException;
|
|
423
|
-
new(innerException: Exception): BarrierPostPhaseException;
|
|
424
|
-
new(message: string): BarrierPostPhaseException;
|
|
425
|
-
new(message: string, innerException: Exception): 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
|
|
|
@@ -477,7 +477,7 @@ export const CompressedStack: {
|
|
|
477
477
|
new(): CompressedStack;
|
|
478
478
|
capture(): CompressedStack;
|
|
479
479
|
getCompressedStack(): CompressedStack;
|
|
480
|
-
run(compressedStack: CompressedStack, callback: ContextCallback, state: unknown): void;
|
|
480
|
+
run(compressedStack: CompressedStack, callback: ContextCallback, state: unknown | undefined): void;
|
|
481
481
|
};
|
|
482
482
|
|
|
483
483
|
|
|
@@ -542,8 +542,8 @@ export const EventWaitHandle: {
|
|
|
542
542
|
new(initialState: boolean, mode: EventResetMode, name: string, createdNew: boolean): EventWaitHandle;
|
|
543
543
|
openExisting(name: string, options: NamedWaitHandleOptions): EventWaitHandle;
|
|
544
544
|
openExisting(name: string): EventWaitHandle;
|
|
545
|
-
tryOpenExisting(name: string, result: EventWaitHandle): 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
|
|
|
@@ -567,7 +567,7 @@ export const 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
|
|
|
@@ -591,7 +591,7 @@ export interface HostExecutionContext$instance {
|
|
|
591
591
|
|
|
592
592
|
export const HostExecutionContext: {
|
|
593
593
|
new(): HostExecutionContext;
|
|
594
|
-
new(state: unknown): HostExecutionContext;
|
|
594
|
+
new(state: unknown | undefined): HostExecutionContext;
|
|
595
595
|
};
|
|
596
596
|
|
|
597
597
|
|
|
@@ -635,14 +635,14 @@ export const Lock: {
|
|
|
635
635
|
export type Lock = Lock$instance;
|
|
636
636
|
|
|
637
637
|
export interface LockRecursionException$instance extends Exception {
|
|
638
|
-
getObjectData(info: SerializationInfo, context: StreamingContext): void;
|
|
638
|
+
getObjectData(info: SerializationInfo | undefined, context: StreamingContext): void;
|
|
639
639
|
}
|
|
640
640
|
|
|
641
641
|
|
|
642
642
|
export const LockRecursionException: {
|
|
643
643
|
new(): LockRecursionException;
|
|
644
|
-
new(message: string): LockRecursionException;
|
|
645
|
-
new(message: string, innerException: Exception): LockRecursionException;
|
|
644
|
+
new(message: string | undefined): LockRecursionException;
|
|
645
|
+
new(message: string | undefined, innerException: Exception | undefined): LockRecursionException;
|
|
646
646
|
};
|
|
647
647
|
|
|
648
648
|
|
|
@@ -709,17 +709,17 @@ export interface Mutex$instance extends WaitHandle$instance {
|
|
|
709
709
|
|
|
710
710
|
|
|
711
711
|
export const Mutex: {
|
|
712
|
-
new(initiallyOwned: boolean, name: string, 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;
|
|
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
717
|
new(initiallyOwned: boolean): Mutex;
|
|
718
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;
|
|
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,9 +736,9 @@ 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
|
|
|
@@ -783,7 +783,7 @@ export interface PreAllocatedOverlapped$instance {
|
|
|
783
783
|
|
|
784
784
|
export const PreAllocatedOverlapped: {
|
|
785
785
|
new(callback: IOCompletionCallback, state: unknown, pinData: unknown): PreAllocatedOverlapped;
|
|
786
|
-
unsafeCreate(callback: IOCompletionCallback, state: unknown, pinData: unknown): PreAllocatedOverlapped;
|
|
786
|
+
unsafeCreate(callback: IOCompletionCallback, state: unknown | undefined, pinData: unknown | undefined): PreAllocatedOverlapped;
|
|
787
787
|
};
|
|
788
788
|
|
|
789
789
|
|
|
@@ -866,7 +866,7 @@ export type ReaderWriterLockSlim = ReaderWriterLockSlim$instance & __ReaderWrite
|
|
|
866
866
|
|
|
867
867
|
|
|
868
868
|
export interface RegisteredWaitHandle$instance extends MarshalByRefObject {
|
|
869
|
-
unregister(waitObject: WaitHandle): boolean;
|
|
869
|
+
unregister(waitObject: WaitHandle | undefined): boolean;
|
|
870
870
|
}
|
|
871
871
|
|
|
872
872
|
|
|
@@ -892,8 +892,8 @@ export const Semaphore: {
|
|
|
892
892
|
new(initialCount: int, maximumCount: int, name: string, createdNew: boolean): Semaphore;
|
|
893
893
|
openExisting(name: string, options: NamedWaitHandleOptions): Semaphore;
|
|
894
894
|
openExisting(name: string): Semaphore;
|
|
895
|
-
tryOpenExisting(name: string, options: NamedWaitHandleOptions, result: Semaphore): 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
|
|
|
@@ -911,8 +911,8 @@ export interface SemaphoreFullException$instance extends SystemException {
|
|
|
911
911
|
|
|
912
912
|
export const SemaphoreFullException: {
|
|
913
913
|
new(): SemaphoreFullException;
|
|
914
|
-
new(message: string): SemaphoreFullException;
|
|
915
|
-
new(message: string, innerException: Exception): SemaphoreFullException;
|
|
914
|
+
new(message: string | undefined): SemaphoreFullException;
|
|
915
|
+
new(message: string | undefined, innerException: Exception | undefined): SemaphoreFullException;
|
|
916
916
|
};
|
|
917
917
|
|
|
918
918
|
|
|
@@ -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
974
|
new(): SynchronizationContext;
|
|
975
|
-
readonly current: SynchronizationContext;
|
|
975
|
+
readonly current: SynchronizationContext | undefined;
|
|
976
976
|
setSynchronizationContext(syncContext: SynchronizationContext): void;
|
|
977
977
|
};
|
|
978
978
|
|
|
@@ -986,8 +986,8 @@ export interface SynchronizationLockException$instance extends SystemException {
|
|
|
986
986
|
|
|
987
987
|
export const SynchronizationLockException: {
|
|
988
988
|
new(): SynchronizationLockException;
|
|
989
|
-
new(message: string): SynchronizationLockException;
|
|
990
|
-
new(message: string, innerException: Exception): 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;
|
|
@@ -1037,7 +1037,7 @@ export const Thread: {
|
|
|
1037
1037
|
new(start: ThreadStart, maxStackSize: int): Thread;
|
|
1038
1038
|
new(start: ParameterizedThreadStart): Thread;
|
|
1039
1039
|
new(start: ParameterizedThreadStart, maxStackSize: int): Thread;
|
|
1040
|
-
currentPrincipal: IPrincipal;
|
|
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,7 +1090,7 @@ 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
|
|
|
@@ -1126,8 +1126,8 @@ export interface ThreadInterruptedException$instance extends SystemException {
|
|
|
1126
1126
|
|
|
1127
1127
|
export const ThreadInterruptedException: {
|
|
1128
1128
|
new(): ThreadInterruptedException;
|
|
1129
|
-
new(message: string): ThreadInterruptedException;
|
|
1130
|
-
new(message: string, innerException: Exception): ThreadInterruptedException;
|
|
1129
|
+
new(message: string | undefined): ThreadInterruptedException;
|
|
1130
|
+
new(message: string | undefined, innerException: Exception | undefined): ThreadInterruptedException;
|
|
1131
1131
|
};
|
|
1132
1132
|
|
|
1133
1133
|
|
|
@@ -1177,7 +1177,7 @@ export interface ThreadPoolBoundHandle$instance {
|
|
|
1177
1177
|
export const ThreadPoolBoundHandle: {
|
|
1178
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
|
|
|
@@ -1214,8 +1214,8 @@ export interface ThreadStateException$instance extends SystemException {
|
|
|
1214
1214
|
|
|
1215
1215
|
export const ThreadStateException: {
|
|
1216
1216
|
new(): ThreadStateException;
|
|
1217
|
-
new(message: string): ThreadStateException;
|
|
1218
|
-
new(message: string, innerException: Exception): ThreadStateException;
|
|
1217
|
+
new(message: string | undefined): ThreadStateException;
|
|
1218
|
+
new(message: string | undefined, innerException: Exception | undefined): ThreadStateException;
|
|
1219
1219
|
};
|
|
1220
1220
|
|
|
1221
1221
|
|
|
@@ -1238,10 +1238,10 @@ 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;
|
|
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
1245
|
new(callback: TimerCallback): Timer;
|
|
1246
1246
|
readonly activeCount: long;
|
|
1247
1247
|
};
|
|
@@ -1303,8 +1303,8 @@ export interface WaitHandleCannotBeOpenedException$instance extends ApplicationE
|
|
|
1303
1303
|
|
|
1304
1304
|
export const WaitHandleCannotBeOpenedException: {
|
|
1305
1305
|
new(): WaitHandleCannotBeOpenedException;
|
|
1306
|
-
new(message: string): WaitHandleCannotBeOpenedException;
|
|
1307
|
-
new(message: string, innerException: Exception): 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
|
|
|
@@ -69,9 +69,9 @@ export interface ChannelClosedException$instance extends InvalidOperationExcepti
|
|
|
69
69
|
|
|
70
70
|
export const ChannelClosedException: {
|
|
71
71
|
new(): ChannelClosedException;
|
|
72
|
-
new(message: string): ChannelClosedException;
|
|
73
|
-
new(innerException: Exception): ChannelClosedException;
|
|
74
|
-
new(message: string, innerException: Exception): ChannelClosedException;
|
|
72
|
+
new(message: string | undefined): ChannelClosedException;
|
|
73
|
+
new(innerException: Exception | undefined): ChannelClosedException;
|
|
74
|
+
new(message: string | undefined, innerException: Exception | undefined): ChannelClosedException;
|
|
75
75
|
};
|
|
76
76
|
|
|
77
77
|
|
|
@@ -115,11 +115,11 @@ export const ChannelReader_1: {
|
|
|
115
115
|
export type ChannelReader_1<T> = ChannelReader_1$instance<T>;
|
|
116
116
|
|
|
117
117
|
export interface ChannelWriter_1$instance<T> {
|
|
118
|
-
complete(error?: Exception): void;
|
|
119
|
-
tryComplete(error?: Exception): boolean;
|
|
120
|
-
tryWrite(item: T): boolean;
|
|
118
|
+
complete(error?: Exception | undefined): void;
|
|
119
|
+
tryComplete(error?: Exception | undefined): boolean;
|
|
120
|
+
tryWrite(item: T | undefined): boolean;
|
|
121
121
|
waitToWriteAsync(cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Boolean>;
|
|
122
|
-
writeAsync(item: T, cancellationToken?: CancellationToken): ValueTask;
|
|
122
|
+
writeAsync(item: T | undefined, cancellationToken?: CancellationToken): ValueTask;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
|
|
@@ -154,7 +154,7 @@ export type UnboundedPrioritizedChannelOptions_1<T> = UnboundedPrioritizedChanne
|
|
|
154
154
|
|
|
155
155
|
export abstract class Channel$instance {
|
|
156
156
|
static createBounded<T>(capacity: int): Channel_1<T>;
|
|
157
|
-
static createBounded<T>(options: BoundedChannelOptions, itemDropped: Action_1<T>): Channel_1<T>;
|
|
157
|
+
static createBounded<T>(options: BoundedChannelOptions, itemDropped: Action_1<T> | undefined): Channel_1<T>;
|
|
158
158
|
static createBounded<T>(options: BoundedChannelOptions): Channel_1<T>;
|
|
159
159
|
static createUnbounded<T>(): Channel_1<T>;
|
|
160
160
|
static createUnbounded<T>(options: UnboundedChannelOptions): Channel_1<T>;
|