@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.
Files changed (137) hide show
  1. package/Microsoft.CSharp.RuntimeBinder/internal/index.d.ts +21 -21
  2. package/Microsoft.VisualBasic/internal/index.d.ts +24 -24
  3. package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +30 -30
  4. package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +16 -16
  5. package/Microsoft.Win32/internal/index.d.ts +12 -12
  6. package/Microsoft.Win32.SafeHandles/internal/index.d.ts +19 -19
  7. package/System/bindings.json +114 -114
  8. package/System/internal/index.d.ts +1277 -1289
  9. package/System/internal/metadata.json +73 -73
  10. package/System.Buffers/internal/index.d.ts +13 -13
  11. package/System.CodeDom.Compiler/internal/index.d.ts +13 -13
  12. package/System.Collections/internal/index.d.ts +66 -68
  13. package/System.Collections.Concurrent/internal/index.d.ts +24 -24
  14. package/System.Collections.Frozen/bindings.json +20 -20
  15. package/System.Collections.Frozen/internal/index.d.ts +10 -10
  16. package/System.Collections.Frozen/internal/metadata.json +10 -10
  17. package/System.Collections.Generic/bindings.json +44 -20
  18. package/System.Collections.Generic/internal/index.d.ts +141 -133
  19. package/System.Collections.Generic/internal/metadata.json +26 -10
  20. package/System.Collections.Immutable/internal/index.d.ts +121 -121
  21. package/System.Collections.ObjectModel/internal/index.d.ts +23 -23
  22. package/System.Collections.Specialized/internal/index.d.ts +85 -87
  23. package/System.ComponentModel/internal/index.d.ts +595 -597
  24. package/System.ComponentModel.DataAnnotations/internal/index.d.ts +105 -105
  25. package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +9 -9
  26. package/System.ComponentModel.Design/internal/index.d.ts +90 -90
  27. package/System.ComponentModel.Design.Serialization/internal/index.d.ts +37 -37
  28. package/System.Data/internal/index.d.ts +225 -225
  29. package/System.Data.Common/internal/index.d.ts +62 -62
  30. package/System.Data.SqlTypes/internal/index.d.ts +73 -73
  31. package/System.Diagnostics/internal/index.d.ts +343 -343
  32. package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +50 -50
  33. package/System.Diagnostics.Contracts/internal/index.d.ts +20 -20
  34. package/System.Diagnostics.Metrics/internal/index.d.ts +46 -46
  35. package/System.Diagnostics.SymbolStore/internal/index.d.ts +9 -9
  36. package/System.Diagnostics.Tracing/internal/index.d.ts +44 -44
  37. package/System.Drawing/internal/index.d.ts +99 -99
  38. package/System.Dynamic/internal/index.d.ts +33 -33
  39. package/System.Formats.Asn1/internal/index.d.ts +12 -12
  40. package/System.Formats.Tar/internal/index.d.ts +17 -17
  41. package/System.Globalization/internal/index.d.ts +51 -51
  42. package/System.IO/internal/index.d.ts +172 -172
  43. package/System.IO.Compression/internal/index.d.ts +56 -56
  44. package/System.IO.Enumeration/internal/index.d.ts +6 -6
  45. package/System.IO.IsolatedStorage/internal/index.d.ts +17 -17
  46. package/System.IO.MemoryMappedFiles/internal/index.d.ts +11 -11
  47. package/System.IO.Pipelines/internal/index.d.ts +13 -13
  48. package/System.IO.Pipes/internal/index.d.ts +32 -32
  49. package/System.Linq/internal/index.d.ts +187 -187
  50. package/System.Linq.Expressions/internal/index.d.ts +203 -203
  51. package/System.Linq.Expressions.Interpreter/internal/index.d.ts +3 -3
  52. package/System.Net/internal/index.d.ts +218 -220
  53. package/System.Net.Cache/internal/index.d.ts +10 -10
  54. package/System.Net.Http/internal/index.d.ts +89 -89
  55. package/System.Net.Http.Headers/internal/index.d.ts +86 -86
  56. package/System.Net.Http.Json/internal/index.d.ts +59 -59
  57. package/System.Net.Http.Metrics/internal/index.d.ts +2 -2
  58. package/System.Net.Mail/internal/index.d.ts +92 -92
  59. package/System.Net.Mime/internal/index.d.ts +6 -6
  60. package/System.Net.NetworkInformation/internal/index.d.ts +39 -39
  61. package/System.Net.Quic/internal/index.d.ts +13 -13
  62. package/System.Net.Security/internal/index.d.ts +70 -70
  63. package/System.Net.ServerSentEvents/internal/index.d.ts +3 -3
  64. package/System.Net.Sockets/internal/index.d.ts +94 -94
  65. package/System.Net.WebSockets/internal/index.d.ts +46 -46
  66. package/System.Numerics/bindings.json +384 -0
  67. package/System.Numerics/internal/index.d.ts +128 -130
  68. package/System.Numerics/internal/metadata.json +256 -0
  69. package/System.Reflection/internal/index.d.ts +271 -271
  70. package/System.Reflection.Emit/internal/index.d.ts +123 -123
  71. package/System.Reflection.Metadata/bindings.json +48 -0
  72. package/System.Reflection.Metadata/internal/index.d.ts +179 -179
  73. package/System.Reflection.Metadata/internal/metadata.json +32 -0
  74. package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +40 -40
  75. package/System.Reflection.PortableExecutable/internal/index.d.ts +26 -26
  76. package/System.Resources/internal/index.d.ts +38 -38
  77. package/System.Runtime/internal/index.d.ts +9 -9
  78. package/System.Runtime.CompilerServices/internal/index.d.ts +168 -168
  79. package/System.Runtime.ConstrainedExecution/internal/index.d.ts +2 -2
  80. package/System.Runtime.ExceptionServices/internal/index.d.ts +3 -3
  81. package/System.Runtime.InteropServices/bindings.json +22 -22
  82. package/System.Runtime.InteropServices/internal/index.d.ts +184 -184
  83. package/System.Runtime.InteropServices/internal/metadata.json +13 -13
  84. package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +30 -30
  85. package/System.Runtime.InteropServices.Java/internal/index.d.ts +3 -3
  86. package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +50 -50
  87. package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +63 -63
  88. package/System.Runtime.InteropServices.ObjectiveC/internal/index.d.ts +1 -1
  89. package/System.Runtime.InteropServices.Swift/internal/index.d.ts +4 -4
  90. package/System.Runtime.Intrinsics/internal/index.d.ts +4 -4
  91. package/System.Runtime.Loader/internal/index.d.ts +9 -9
  92. package/System.Runtime.Remoting/internal/index.d.ts +2 -2
  93. package/System.Runtime.Serialization/internal/index.d.ts +113 -115
  94. package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +19 -19
  95. package/System.Runtime.Serialization.Formatters/internal/index.d.ts +2 -2
  96. package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +5 -5
  97. package/System.Runtime.Serialization.Json/internal/index.d.ts +28 -28
  98. package/System.Runtime.Versioning/internal/index.d.ts +22 -22
  99. package/System.Security/internal/index.d.ts +63 -63
  100. package/System.Security.AccessControl/internal/index.d.ts +84 -84
  101. package/System.Security.Authentication/internal/index.d.ts +6 -6
  102. package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +13 -13
  103. package/System.Security.Claims/internal/index.d.ts +38 -40
  104. package/System.Security.Cryptography/internal/index.d.ts +378 -378
  105. package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +172 -172
  106. package/System.Security.Permissions/internal/index.d.ts +1 -1
  107. package/System.Security.Policy/internal/index.d.ts +6 -6
  108. package/System.Security.Principal/internal/index.d.ts +29 -31
  109. package/System.Text/internal/index.d.ts +94 -94
  110. package/System.Text.Encodings.Web/internal/index.d.ts +3 -3
  111. package/System.Text.Json/internal/index.d.ts +103 -103
  112. package/System.Text.Json.Nodes/internal/index.d.ts +73 -73
  113. package/System.Text.Json.Schema/internal/index.d.ts +7 -7
  114. package/System.Text.Json.Serialization/internal/index.d.ts +34 -34
  115. package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +57 -57
  116. package/System.Text.RegularExpressions/internal/index.d.ts +29 -29
  117. package/System.Text.Unicode/internal/index.d.ts +6 -6
  118. package/System.Threading/internal/index.d.ts +160 -160
  119. package/System.Threading.Channels/internal/index.d.ts +12 -12
  120. package/System.Threading.Tasks/internal/index.d.ts +125 -135
  121. package/System.Threading.Tasks.Dataflow/internal/index.d.ts +54 -51
  122. package/System.Threading.Tasks.Sources/internal/index.d.ts +5 -5
  123. package/System.Timers/internal/index.d.ts +8 -8
  124. package/System.Transactions/internal/index.d.ts +51 -51
  125. package/System.Web/internal/index.d.ts +32 -32
  126. package/System.Windows.Input/internal/index.d.ts +2 -2
  127. package/System.Windows.Markup/internal/index.d.ts +2 -2
  128. package/System.Xml/internal/index.d.ts +281 -281
  129. package/System.Xml.Linq/internal/index.d.ts +76 -76
  130. package/System.Xml.Resolvers/internal/index.d.ts +8 -8
  131. package/System.Xml.Schema/internal/index.d.ts +173 -173
  132. package/System.Xml.Serialization/internal/index.d.ts +200 -200
  133. package/System.Xml.XPath/internal/index.d.ts +28 -28
  134. package/System.Xml.Xsl/internal/index.d.ts +53 -53
  135. package/System.Xml.Xsl.Runtime/internal/index.d.ts +72 -72
  136. package/__internal/extensions/index.d.ts +415 -414
  137. package/package.json +1 -1
@@ -397,16 +397,16 @@ export interface IDynamicInterfaceCastable$instance {
397
397
  export type IDynamicInterfaceCastable = IDynamicInterfaceCastable$instance;
398
398
 
399
399
  export interface ArrayWithOffset$instance {
400
- equals(obj: unknown): boolean;
400
+ equals(obj: unknown | undefined): boolean;
401
401
  equals(obj: ArrayWithOffset): boolean;
402
- getArray(): unknown;
402
+ getArray(): unknown | undefined;
403
403
  getHashCode(): int;
404
404
  getOffset(): int;
405
405
  }
406
406
 
407
407
 
408
408
  export const ArrayWithOffset: {
409
- new(array: unknown, offset: int): ArrayWithOffset$instance;
409
+ new(array: unknown | undefined, offset: int): ArrayWithOffset;
410
410
  };
411
411
 
412
412
 
@@ -425,13 +425,13 @@ export interface CLong$instance {
425
425
  equals(o: unknown): boolean;
426
426
  equals(other: CLong): boolean;
427
427
  getHashCode(): int;
428
- toString(): string;
428
+ toString(): string | undefined;
429
429
  }
430
430
 
431
431
 
432
432
  export const CLong: {
433
- new(value: int): CLong$instance;
434
- new(value: nint): CLong$instance;
433
+ new(value: int): CLong;
434
+ new(value: nint): CLong;
435
435
  };
436
436
 
437
437
 
@@ -451,7 +451,7 @@ export interface ComWrappers_ComInterfaceDispatch$instance {
451
451
 
452
452
 
453
453
  export const ComWrappers_ComInterfaceDispatch: {
454
- new(): ComWrappers_ComInterfaceDispatch$instance;
454
+ new(): ComWrappers_ComInterfaceDispatch;
455
455
  getInstance<T>(dispatchPtr: ptr<ComWrappers_ComInterfaceDispatch>): T;
456
456
  };
457
457
 
@@ -465,7 +465,7 @@ export interface ComWrappers_ComInterfaceEntry$instance {
465
465
 
466
466
 
467
467
  export const ComWrappers_ComInterfaceEntry: {
468
- new(): ComWrappers_ComInterfaceEntry$instance;
468
+ new(): ComWrappers_ComInterfaceEntry;
469
469
  };
470
470
 
471
471
 
@@ -476,13 +476,13 @@ export interface CULong$instance {
476
476
  equals(o: unknown): boolean;
477
477
  equals(other: CULong): boolean;
478
478
  getHashCode(): int;
479
- toString(): string;
479
+ toString(): string | undefined;
480
480
  }
481
481
 
482
482
 
483
483
  export const CULong: {
484
- new(value: uint): CULong$instance;
485
- new(value: nuint): CULong$instance;
484
+ new(value: uint): CULong;
485
+ new(value: nuint): CULong;
486
486
  };
487
487
 
488
488
 
@@ -500,7 +500,7 @@ export interface GCHandle$instance {
500
500
  readonly isAllocated: boolean;
501
501
  target: unknown;
502
502
  addrOfPinnedObject(): nint;
503
- equals(o: unknown): boolean;
503
+ equals(o: unknown | undefined): boolean;
504
504
  equals(other: GCHandle): boolean;
505
505
  free(): void;
506
506
  getHashCode(): int;
@@ -508,9 +508,9 @@ export interface GCHandle$instance {
508
508
 
509
509
 
510
510
  export const GCHandle: {
511
- new(): GCHandle$instance;
512
- alloc(value: unknown, type_: GCHandleType): GCHandle;
513
- alloc(value: unknown): GCHandle;
511
+ new(): GCHandle;
512
+ alloc(value: unknown | undefined, type_: GCHandleType): GCHandle;
513
+ alloc(value: unknown | undefined): GCHandle;
514
514
  fromIntPtr(value: nint): GCHandle;
515
515
  toIntPtr(value: GCHandle): nint;
516
516
  };
@@ -537,7 +537,7 @@ export interface GCHandle_1$instance<T> {
537
537
 
538
538
 
539
539
  export const GCHandle_1: {
540
- new<T>(target: T): GCHandle_1$instance<T>;
540
+ new<T>(target: T): GCHandle_1<T>;
541
541
  fromIntPtr<T>(value: nint): GCHandle_1<T>;
542
542
  toIntPtr<T>(value: GCHandle_1<T>): nint;
543
543
  };
@@ -558,12 +558,12 @@ export type GCHandle_1<T> = GCHandle_1$instance<T> & __GCHandle_1$views<T>;
558
558
 
559
559
  export interface HandleRef$instance {
560
560
  readonly handle: nint;
561
- readonly wrapper: unknown;
561
+ readonly wrapper: unknown | undefined;
562
562
  }
563
563
 
564
564
 
565
565
  export const HandleRef: {
566
- new(wrapper: unknown, handle: nint): HandleRef$instance;
566
+ new(wrapper: unknown | undefined, handle: nint): HandleRef;
567
567
  toIntPtr(value: HandleRef): nint;
568
568
  };
569
569
 
@@ -577,18 +577,18 @@ export interface NFloat$instance extends IBitwiseOperators_3<NFloat, NFloat, NFl
577
577
  equals(obj: unknown): boolean;
578
578
  equals(other: NFloat): boolean;
579
579
  getHashCode(): int;
580
- toString(): string;
581
- toString(format: string): string;
582
- toString(provider: IFormatProvider): string;
580
+ toString(): string | undefined;
581
+ toString(format: string | undefined): string;
582
+ toString(provider: IFormatProvider | undefined): string;
583
583
  toString(format: string, provider: IFormatProvider): string;
584
- tryFormat(destination: Span_1<System_Internal.Char>, charsWritten: int, format?: ReadOnlySpan_1<System_Internal.Char>, provider?: IFormatProvider): boolean;
585
- tryFormat(utf8Destination: Span_1<System_Internal.Byte>, bytesWritten: int, format?: ReadOnlySpan_1<System_Internal.Char>, provider?: IFormatProvider): boolean;
584
+ tryFormat(destination: Span_1<System_Internal.Char>, charsWritten: int, format?: ReadOnlySpan_1<System_Internal.Char>, provider?: IFormatProvider | undefined): boolean;
585
+ tryFormat(utf8Destination: Span_1<System_Internal.Byte>, bytesWritten: int, format?: ReadOnlySpan_1<System_Internal.Char>, provider?: IFormatProvider | undefined): boolean;
586
586
  }
587
587
 
588
588
 
589
589
  export const NFloat: {
590
- new(value: float): NFloat$instance;
591
- new(value: double): NFloat$instance;
590
+ new(value: float): NFloat;
591
+ new(value: double): NFloat;
592
592
  readonly epsilon: NFloat;
593
593
  readonly maxValue: NFloat;
594
594
  readonly minValue: NFloat;
@@ -672,13 +672,13 @@ export const NFloat: {
672
672
  minNative(x: NFloat, y: NFloat): NFloat;
673
673
  minNumber(x: NFloat, y: NFloat): NFloat;
674
674
  multiplyAddEstimate(left: NFloat, right: NFloat, addend: NFloat): NFloat;
675
- parse(utf8Text: ReadOnlySpan_1<System_Internal.Byte>, style?: NumberStyles, provider?: IFormatProvider): NFloat;
676
- parse(utf8Text: ReadOnlySpan_1<System_Internal.Byte>, provider: IFormatProvider): NFloat;
677
- parse(s: ReadOnlySpan_1<System_Internal.Char>, style?: NumberStyles, provider?: IFormatProvider): NFloat;
678
- parse(s: ReadOnlySpan_1<System_Internal.Char>, provider: IFormatProvider): NFloat;
679
- parse(s: string, style: NumberStyles, provider: IFormatProvider): NFloat;
675
+ parse(utf8Text: ReadOnlySpan_1<System_Internal.Byte>, style?: NumberStyles, provider?: IFormatProvider | undefined): NFloat;
676
+ parse(utf8Text: ReadOnlySpan_1<System_Internal.Byte>, provider: IFormatProvider | undefined): NFloat;
677
+ parse(s: ReadOnlySpan_1<System_Internal.Char>, style?: NumberStyles, provider?: IFormatProvider | undefined): NFloat;
678
+ parse(s: ReadOnlySpan_1<System_Internal.Char>, provider: IFormatProvider | undefined): NFloat;
679
+ parse(s: string, style: NumberStyles, provider: IFormatProvider | undefined): NFloat;
680
680
  parse(s: string, style: NumberStyles): NFloat;
681
- parse(s: string, provider: IFormatProvider): NFloat;
681
+ parse(s: string, provider: IFormatProvider | undefined): NFloat;
682
682
  parse(s: string): NFloat;
683
683
  pow(x: NFloat, y: NFloat): NFloat;
684
684
  radiansToDegrees(radians: NFloat): NFloat;
@@ -701,11 +701,11 @@ export const NFloat: {
701
701
  tanh(x: NFloat): NFloat;
702
702
  tanPi(x: NFloat): NFloat;
703
703
  truncate(x: NFloat): NFloat;
704
- tryParse(utf8Text: ReadOnlySpan_1<System_Internal.Byte>, style: NumberStyles, provider: IFormatProvider, result: NFloat): boolean;
705
- tryParse(utf8Text: ReadOnlySpan_1<System_Internal.Byte>, provider: IFormatProvider, result: NFloat): boolean;
704
+ tryParse(utf8Text: ReadOnlySpan_1<System_Internal.Byte>, style: NumberStyles, provider: IFormatProvider | undefined, result: NFloat): boolean;
705
+ tryParse(utf8Text: ReadOnlySpan_1<System_Internal.Byte>, provider: IFormatProvider | undefined, result: NFloat): boolean;
706
706
  tryParse(utf8Text: ReadOnlySpan_1<System_Internal.Byte>, result: NFloat): boolean;
707
- tryParse(s: ReadOnlySpan_1<System_Internal.Char>, style: NumberStyles, provider: IFormatProvider, result: NFloat): boolean;
708
- tryParse(s: ReadOnlySpan_1<System_Internal.Char>, provider: IFormatProvider, result: NFloat): boolean;
707
+ tryParse(s: ReadOnlySpan_1<System_Internal.Char>, style: NumberStyles, provider: IFormatProvider | undefined, result: NFloat): boolean;
708
+ tryParse(s: ReadOnlySpan_1<System_Internal.Char>, provider: IFormatProvider | undefined, result: NFloat): boolean;
709
709
  tryParse(s: ReadOnlySpan_1<System_Internal.Char>, result: NFloat): boolean;
710
710
  tryParse(s: string, style: NumberStyles, provider: IFormatProvider, result: NFloat): boolean;
711
711
  tryParse(s: string, provider: IFormatProvider, result: NFloat): boolean;
@@ -758,7 +758,7 @@ export interface OSPlatform$instance {
758
758
 
759
759
 
760
760
  export const OSPlatform: {
761
- new(): OSPlatform$instance;
761
+ new(): OSPlatform;
762
762
  readonly freeBSD: OSPlatform;
763
763
  readonly linux: OSPlatform;
764
764
  readonly OSX: OSPlatform;
@@ -789,7 +789,7 @@ export interface PinnedGCHandle_1$instance<T> {
789
789
 
790
790
 
791
791
  export const PinnedGCHandle_1: {
792
- new<T>(target: T): PinnedGCHandle_1$instance<T>;
792
+ new<T>(target: T): PinnedGCHandle_1<T>;
793
793
  fromIntPtr<T>(value: nint): PinnedGCHandle_1<T>;
794
794
  toIntPtr<T>(value: PinnedGCHandle_1<T>): nint;
795
795
  };
@@ -811,16 +811,16 @@ export type PinnedGCHandle_1<T> = PinnedGCHandle_1$instance<T> & __PinnedGCHandl
811
811
  export interface WeakGCHandle_1$instance<T> {
812
812
  readonly isAllocated: boolean;
813
813
  dispose(): void;
814
- equals(obj: unknown): boolean;
814
+ equals(obj: unknown | undefined): boolean;
815
815
  equals(other: WeakGCHandle_1<T>): boolean;
816
816
  getHashCode(): int;
817
- setTarget(target: T): void;
818
- tryGetTarget(target: T): boolean;
817
+ setTarget(target: T | undefined): void;
818
+ tryGetTarget(target: T | undefined): boolean;
819
819
  }
820
820
 
821
821
 
822
822
  export const WeakGCHandle_1: {
823
- new<T>(target: T, trackResurrection: boolean): WeakGCHandle_1$instance<T>;
823
+ new<T>(target: T | undefined, trackResurrection: boolean): WeakGCHandle_1<T>;
824
824
  fromIntPtr<T>(value: nint): WeakGCHandle_1<T>;
825
825
  toIntPtr<T>(value: WeakGCHandle_1<T>): nint;
826
826
  };
@@ -844,7 +844,7 @@ export interface AllowReversePInvokeCallsAttribute$instance extends Attribute {
844
844
 
845
845
 
846
846
  export const AllowReversePInvokeCallsAttribute: {
847
- new(): AllowReversePInvokeCallsAttribute$instance;
847
+ new(): AllowReversePInvokeCallsAttribute;
848
848
  };
849
849
 
850
850
 
@@ -856,7 +856,7 @@ export interface AutomationProxyAttribute$instance extends Attribute {
856
856
 
857
857
 
858
858
  export const AutomationProxyAttribute: {
859
- new(val: boolean): AutomationProxyAttribute$instance;
859
+ new(val: boolean): AutomationProxyAttribute;
860
860
  };
861
861
 
862
862
 
@@ -869,20 +869,20 @@ export interface BestFitMappingAttribute$instance extends Attribute {
869
869
 
870
870
 
871
871
  export const BestFitMappingAttribute: {
872
- new(BestFitMapping: boolean): BestFitMappingAttribute$instance;
872
+ new(BestFitMapping: boolean): BestFitMappingAttribute;
873
873
  };
874
874
 
875
875
 
876
876
  export type BestFitMappingAttribute = BestFitMappingAttribute$instance;
877
877
 
878
878
  export interface BStrWrapper$instance {
879
- readonly wrappedObject: string;
879
+ readonly wrappedObject: string | undefined;
880
880
  }
881
881
 
882
882
 
883
883
  export const BStrWrapper: {
884
- new(value: string): BStrWrapper$instance;
885
- new(value: unknown): BStrWrapper$instance;
884
+ new(value: string | undefined): BStrWrapper;
885
+ new(value: unknown | undefined): BStrWrapper;
886
886
  };
887
887
 
888
888
 
@@ -894,8 +894,8 @@ export interface ClassInterfaceAttribute$instance extends Attribute {
894
894
 
895
895
 
896
896
  export const ClassInterfaceAttribute: {
897
- new(classInterfaceType: ClassInterfaceType): ClassInterfaceAttribute$instance;
898
- new(classInterfaceType: short): ClassInterfaceAttribute$instance;
897
+ new(classInterfaceType: ClassInterfaceType): ClassInterfaceAttribute;
898
+ new(classInterfaceType: short): ClassInterfaceAttribute;
899
899
  };
900
900
 
901
901
 
@@ -907,7 +907,7 @@ export interface CoClassAttribute$instance extends Attribute {
907
907
 
908
908
 
909
909
  export const CoClassAttribute: {
910
- new(coClass: Type): CoClassAttribute$instance;
910
+ new(coClass: Type): CoClassAttribute;
911
911
  };
912
912
 
913
913
 
@@ -919,7 +919,7 @@ export interface ComAliasNameAttribute$instance extends Attribute {
919
919
 
920
920
 
921
921
  export const ComAliasNameAttribute: {
922
- new(alias: string): ComAliasNameAttribute$instance;
922
+ new(alias: string): ComAliasNameAttribute;
923
923
  };
924
924
 
925
925
 
@@ -931,27 +931,27 @@ export interface ComAwareEventInfo$instance extends EventInfo {
931
931
  readonly metadataToken: int;
932
932
  readonly module_: Module;
933
933
  readonly name: string;
934
- readonly reflectedType: Type;
934
+ readonly reflectedType: Type | undefined;
935
935
  addEventHandler(target: unknown, handler: Function): void;
936
936
  getAddMethod(nonPublic: boolean): MethodInfo;
937
- getAddMethod(): MethodInfo;
937
+ getAddMethod(): MethodInfo | undefined;
938
938
  getCustomAttributes(attributeType: Type, inherit: boolean): unknown[];
939
939
  getCustomAttributes(inherit: boolean): unknown[];
940
940
  getCustomAttributesData(): IList_1<CustomAttributeData>;
941
941
  getCustomAttributesData(): IList_1<CustomAttributeData>;
942
942
  getOtherMethods(nonPublic: boolean): MethodInfo[];
943
- getOtherMethods(): MethodInfo[];
943
+ getOtherMethods(): (MethodInfo | undefined)[] | undefined;
944
944
  getRaiseMethod(nonPublic: boolean): MethodInfo;
945
- getRaiseMethod(): MethodInfo;
945
+ getRaiseMethod(): MethodInfo | undefined;
946
946
  getRemoveMethod(nonPublic: boolean): MethodInfo;
947
- getRemoveMethod(): MethodInfo;
947
+ getRemoveMethod(): MethodInfo | undefined;
948
948
  isDefined(attributeType: Type, inherit: boolean): boolean;
949
949
  removeEventHandler(target: unknown, handler: Function): void;
950
950
  }
951
951
 
952
952
 
953
953
  export const ComAwareEventInfo: {
954
- new(type_: Type, eventName: string): ComAwareEventInfo$instance;
954
+ new(type_: Type, eventName: string): ComAwareEventInfo;
955
955
  };
956
956
 
957
957
 
@@ -971,7 +971,7 @@ export interface ComCompatibleVersionAttribute$instance extends Attribute {
971
971
 
972
972
 
973
973
  export const ComCompatibleVersionAttribute: {
974
- new(major: int, minor: int, build: int, revision: int): ComCompatibleVersionAttribute$instance;
974
+ new(major: int, minor: int, build: int, revision: int): ComCompatibleVersionAttribute;
975
975
  };
976
976
 
977
977
 
@@ -982,7 +982,7 @@ export interface ComConversionLossAttribute$instance extends Attribute {
982
982
 
983
983
 
984
984
  export const ComConversionLossAttribute: {
985
- new(): ComConversionLossAttribute$instance;
985
+ new(): ComConversionLossAttribute;
986
986
  };
987
987
 
988
988
 
@@ -994,7 +994,7 @@ export interface ComDefaultInterfaceAttribute$instance extends Attribute {
994
994
 
995
995
 
996
996
  export const ComDefaultInterfaceAttribute: {
997
- new(defaultInterface: Type): ComDefaultInterfaceAttribute$instance;
997
+ new(defaultInterface: Type): ComDefaultInterfaceAttribute;
998
998
  };
999
999
 
1000
1000
 
@@ -1007,7 +1007,7 @@ export interface ComEventInterfaceAttribute$instance extends Attribute {
1007
1007
 
1008
1008
 
1009
1009
  export const ComEventInterfaceAttribute: {
1010
- new(SourceInterface: Type, EventProvider: Type): ComEventInterfaceAttribute$instance;
1010
+ new(SourceInterface: Type, EventProvider: Type): ComEventInterfaceAttribute;
1011
1011
  };
1012
1012
 
1013
1013
 
@@ -1015,15 +1015,15 @@ export type ComEventInterfaceAttribute = ComEventInterfaceAttribute$instance;
1015
1015
 
1016
1016
  export interface COMException$instance extends ExternalException$instance {
1017
1017
  getObjectData(info: SerializationInfo, context: StreamingContext): void;
1018
- toString(): string;
1018
+ toString(): string | undefined;
1019
1019
  }
1020
1020
 
1021
1021
 
1022
1022
  export const COMException: {
1023
- new(): COMException$instance;
1024
- new(message: string): COMException$instance;
1025
- new(message: string, inner: Exception): COMException$instance;
1026
- new(message: string, errorCode: int): COMException$instance;
1023
+ new(): COMException;
1024
+ new(message: string | undefined): COMException;
1025
+ new(message: string | undefined, inner: Exception | undefined): COMException;
1026
+ new(message: string | undefined, errorCode: int): COMException;
1027
1027
  };
1028
1028
 
1029
1029
 
@@ -1039,7 +1039,7 @@ export interface ComImportAttribute$instance extends Attribute {
1039
1039
 
1040
1040
 
1041
1041
  export const ComImportAttribute: {
1042
- new(): ComImportAttribute$instance;
1042
+ new(): ComImportAttribute;
1043
1043
  };
1044
1044
 
1045
1045
 
@@ -1050,7 +1050,7 @@ export interface ComRegisterFunctionAttribute$instance extends Attribute {
1050
1050
 
1051
1051
 
1052
1052
  export const ComRegisterFunctionAttribute: {
1053
- new(): ComRegisterFunctionAttribute$instance;
1053
+ new(): ComRegisterFunctionAttribute;
1054
1054
  };
1055
1055
 
1056
1056
 
@@ -1062,11 +1062,11 @@ export interface ComSourceInterfacesAttribute$instance extends Attribute {
1062
1062
 
1063
1063
 
1064
1064
  export const ComSourceInterfacesAttribute: {
1065
- new(sourceInterfaces: string): ComSourceInterfacesAttribute$instance;
1066
- new(sourceInterface: Type): ComSourceInterfacesAttribute$instance;
1067
- new(sourceInterface1: Type, sourceInterface2: Type): ComSourceInterfacesAttribute$instance;
1068
- new(sourceInterface1: Type, sourceInterface2: Type, sourceInterface3: Type): ComSourceInterfacesAttribute$instance;
1069
- new(sourceInterface1: Type, sourceInterface2: Type, sourceInterface3: Type, sourceInterface4: Type): ComSourceInterfacesAttribute$instance;
1065
+ new(sourceInterfaces: string): ComSourceInterfacesAttribute;
1066
+ new(sourceInterface: Type): ComSourceInterfacesAttribute;
1067
+ new(sourceInterface1: Type, sourceInterface2: Type): ComSourceInterfacesAttribute;
1068
+ new(sourceInterface1: Type, sourceInterface2: Type, sourceInterface3: Type): ComSourceInterfacesAttribute;
1069
+ new(sourceInterface1: Type, sourceInterface2: Type, sourceInterface3: Type, sourceInterface4: Type): ComSourceInterfacesAttribute;
1070
1070
  };
1071
1071
 
1072
1072
 
@@ -1077,7 +1077,7 @@ export interface ComUnregisterFunctionAttribute$instance extends Attribute {
1077
1077
 
1078
1078
 
1079
1079
  export const ComUnregisterFunctionAttribute: {
1080
- new(): ComUnregisterFunctionAttribute$instance;
1080
+ new(): ComUnregisterFunctionAttribute;
1081
1081
  };
1082
1082
 
1083
1083
 
@@ -1089,7 +1089,7 @@ export interface ComVisibleAttribute$instance extends Attribute {
1089
1089
 
1090
1090
 
1091
1091
  export const ComVisibleAttribute: {
1092
- new(visibility: boolean): ComVisibleAttribute$instance;
1092
+ new(visibility: boolean): ComVisibleAttribute;
1093
1093
  };
1094
1094
 
1095
1095
 
@@ -1098,7 +1098,7 @@ export type ComVisibleAttribute = ComVisibleAttribute$instance;
1098
1098
  export interface ComWrappers$instance {
1099
1099
  getOrCreateComInterfaceForObject(instance: unknown, flags: CreateComInterfaceFlags): nint;
1100
1100
  getOrCreateObjectForComInstance(externalComObject: nint, flags: CreateObjectFlags): unknown;
1101
- getOrCreateObjectForComInstance(externalComObject: nint, flags: CreateObjectFlags, userState: unknown): unknown;
1101
+ getOrCreateObjectForComInstance(externalComObject: nint, flags: CreateObjectFlags, userState: unknown | undefined): unknown;
1102
1102
  getOrRegisterObjectForComInstance(externalComObject: nint, flags: CreateObjectFlags, wrapper: unknown): unknown;
1103
1103
  getOrRegisterObjectForComInstance(externalComObject: nint, flags: CreateObjectFlags, wrapper: unknown, inner: nint): unknown;
1104
1104
  }
@@ -1143,8 +1143,8 @@ export interface CurrencyWrapper$instance {
1143
1143
 
1144
1144
 
1145
1145
  export const CurrencyWrapper: {
1146
- new(obj: decimal): CurrencyWrapper$instance;
1147
- new(obj: unknown): CurrencyWrapper$instance;
1146
+ new(obj: decimal): CurrencyWrapper;
1147
+ new(obj: unknown): CurrencyWrapper;
1148
1148
  };
1149
1149
 
1150
1150
 
@@ -1156,7 +1156,7 @@ export interface DefaultCharSetAttribute$instance extends Attribute {
1156
1156
 
1157
1157
 
1158
1158
  export const DefaultCharSetAttribute: {
1159
- new(charSet: CharSet): DefaultCharSetAttribute$instance;
1159
+ new(charSet: CharSet): DefaultCharSetAttribute;
1160
1160
  };
1161
1161
 
1162
1162
 
@@ -1168,7 +1168,7 @@ export interface DefaultDllImportSearchPathsAttribute$instance extends Attribute
1168
1168
 
1169
1169
 
1170
1170
  export const DefaultDllImportSearchPathsAttribute: {
1171
- new(paths: DllImportSearchPath): DefaultDllImportSearchPathsAttribute$instance;
1171
+ new(paths: DllImportSearchPath): DefaultDllImportSearchPathsAttribute;
1172
1172
  };
1173
1173
 
1174
1174
 
@@ -1180,19 +1180,19 @@ export interface DefaultParameterValueAttribute$instance extends Attribute {
1180
1180
 
1181
1181
 
1182
1182
  export const DefaultParameterValueAttribute: {
1183
- new(value: unknown): DefaultParameterValueAttribute$instance;
1183
+ new(value: unknown | undefined): DefaultParameterValueAttribute;
1184
1184
  };
1185
1185
 
1186
1186
 
1187
1187
  export type DefaultParameterValueAttribute = DefaultParameterValueAttribute$instance;
1188
1188
 
1189
1189
  export interface DispatchWrapper$instance {
1190
- readonly wrappedObject: unknown;
1190
+ readonly wrappedObject: unknown | undefined;
1191
1191
  }
1192
1192
 
1193
1193
 
1194
1194
  export const DispatchWrapper: {
1195
- new(obj: unknown): DispatchWrapper$instance;
1195
+ new(obj: unknown | undefined): DispatchWrapper;
1196
1196
  };
1197
1197
 
1198
1198
 
@@ -1204,14 +1204,14 @@ export interface DispIdAttribute$instance extends Attribute {
1204
1204
 
1205
1205
 
1206
1206
  export const DispIdAttribute: {
1207
- new(dispId: int): DispIdAttribute$instance;
1207
+ new(dispId: int): DispIdAttribute;
1208
1208
  };
1209
1209
 
1210
1210
 
1211
1211
  export type DispIdAttribute = DispIdAttribute$instance;
1212
1212
 
1213
1213
  export interface DllImportAttribute$instance extends Attribute {
1214
- entryPoint: string;
1214
+ entryPoint: string | undefined;
1215
1215
  charSet: CharSet;
1216
1216
  setLastError: boolean;
1217
1217
  exactSpelling: boolean;
@@ -1224,7 +1224,7 @@ export interface DllImportAttribute$instance extends Attribute {
1224
1224
 
1225
1225
 
1226
1226
  export const DllImportAttribute: {
1227
- new(dllName: string): DllImportAttribute$instance;
1227
+ new(dllName: string): DllImportAttribute;
1228
1228
  };
1229
1229
 
1230
1230
 
@@ -1235,7 +1235,7 @@ export interface DynamicInterfaceCastableImplementationAttribute$instance extend
1235
1235
 
1236
1236
 
1237
1237
  export const DynamicInterfaceCastableImplementationAttribute: {
1238
- new(): DynamicInterfaceCastableImplementationAttribute$instance;
1238
+ new(): DynamicInterfaceCastableImplementationAttribute;
1239
1239
  };
1240
1240
 
1241
1241
 
@@ -1247,9 +1247,9 @@ export interface ErrorWrapper$instance {
1247
1247
 
1248
1248
 
1249
1249
  export const ErrorWrapper: {
1250
- new(errorCode: int): ErrorWrapper$instance;
1251
- new(errorCode: unknown): ErrorWrapper$instance;
1252
- new(e: Exception): ErrorWrapper$instance;
1250
+ new(errorCode: int): ErrorWrapper;
1251
+ new(errorCode: unknown): ErrorWrapper;
1252
+ new(e: Exception): ErrorWrapper;
1253
1253
  };
1254
1254
 
1255
1255
 
@@ -1258,15 +1258,15 @@ export type ErrorWrapper = ErrorWrapper$instance;
1258
1258
  export interface ExternalException$instance extends SystemException {
1259
1259
  readonly errorCode: int;
1260
1260
  getObjectData(info: SerializationInfo, context: StreamingContext): void;
1261
- toString(): string;
1261
+ toString(): string | undefined;
1262
1262
  }
1263
1263
 
1264
1264
 
1265
1265
  export const ExternalException: {
1266
- new(): ExternalException$instance;
1267
- new(message: string): ExternalException$instance;
1268
- new(message: string, inner: Exception): ExternalException$instance;
1269
- new(message: string, errorCode: int): ExternalException$instance;
1266
+ new(): ExternalException;
1267
+ new(message: string | undefined): ExternalException;
1268
+ new(message: string | undefined, inner: Exception | undefined): ExternalException;
1269
+ new(message: string | undefined, errorCode: int): ExternalException;
1270
1270
  };
1271
1271
 
1272
1272
 
@@ -1283,7 +1283,7 @@ export interface FieldOffsetAttribute$instance extends Attribute {
1283
1283
 
1284
1284
 
1285
1285
  export const FieldOffsetAttribute: {
1286
- new(offset: int): FieldOffsetAttribute$instance;
1286
+ new(offset: int): FieldOffsetAttribute;
1287
1287
  };
1288
1288
 
1289
1289
 
@@ -1295,7 +1295,7 @@ export interface GuidAttribute$instance extends Attribute {
1295
1295
 
1296
1296
 
1297
1297
  export const GuidAttribute: {
1298
- new(guid: string): GuidAttribute$instance;
1298
+ new(guid: string): GuidAttribute;
1299
1299
  };
1300
1300
 
1301
1301
 
@@ -1312,8 +1312,8 @@ export interface HandleCollector$instance {
1312
1312
 
1313
1313
 
1314
1314
  export const HandleCollector: {
1315
- new(name: string, initialThreshold: int): HandleCollector$instance;
1316
- new(name: string, initialThreshold: int, maximumThreshold: int): HandleCollector$instance;
1315
+ new(name: string, initialThreshold: int): HandleCollector;
1316
+ new(name: string, initialThreshold: int, maximumThreshold: int): HandleCollector;
1317
1317
  };
1318
1318
 
1319
1319
 
@@ -1325,7 +1325,7 @@ export interface ImportedFromTypeLibAttribute$instance extends Attribute {
1325
1325
 
1326
1326
 
1327
1327
  export const ImportedFromTypeLibAttribute: {
1328
- new(tlbFile: string): ImportedFromTypeLibAttribute$instance;
1328
+ new(tlbFile: string): ImportedFromTypeLibAttribute;
1329
1329
  };
1330
1330
 
1331
1331
 
@@ -1336,7 +1336,7 @@ export interface InAttribute$instance extends Attribute {
1336
1336
 
1337
1337
 
1338
1338
  export const InAttribute: {
1339
- new(): InAttribute$instance;
1339
+ new(): InAttribute;
1340
1340
  };
1341
1341
 
1342
1342
 
@@ -1348,8 +1348,8 @@ export interface InterfaceTypeAttribute$instance extends Attribute {
1348
1348
 
1349
1349
 
1350
1350
  export const InterfaceTypeAttribute: {
1351
- new(interfaceType: ComInterfaceType): InterfaceTypeAttribute$instance;
1352
- new(interfaceType: short): InterfaceTypeAttribute$instance;
1351
+ new(interfaceType: ComInterfaceType): InterfaceTypeAttribute;
1352
+ new(interfaceType: short): InterfaceTypeAttribute;
1353
1353
  };
1354
1354
 
1355
1355
 
@@ -1361,9 +1361,9 @@ export interface InvalidComObjectException$instance extends SystemException {
1361
1361
 
1362
1362
 
1363
1363
  export const InvalidComObjectException: {
1364
- new(): InvalidComObjectException$instance;
1365
- new(message: string): InvalidComObjectException$instance;
1366
- new(message: string, inner: Exception): InvalidComObjectException$instance;
1364
+ new(): InvalidComObjectException;
1365
+ new(message: string | undefined): InvalidComObjectException;
1366
+ new(message: string | undefined, inner: Exception | undefined): InvalidComObjectException;
1367
1367
  };
1368
1368
 
1369
1369
 
@@ -1380,9 +1380,9 @@ export interface InvalidOleVariantTypeException$instance extends SystemException
1380
1380
 
1381
1381
 
1382
1382
  export const InvalidOleVariantTypeException: {
1383
- new(): InvalidOleVariantTypeException$instance;
1384
- new(message: string): InvalidOleVariantTypeException$instance;
1385
- new(message: string, inner: Exception): InvalidOleVariantTypeException$instance;
1383
+ new(): InvalidOleVariantTypeException;
1384
+ new(message: string | undefined): InvalidOleVariantTypeException;
1385
+ new(message: string | undefined, inner: Exception | undefined): InvalidOleVariantTypeException;
1386
1386
  };
1387
1387
 
1388
1388
 
@@ -1399,23 +1399,23 @@ export interface LCIDConversionAttribute$instance extends Attribute {
1399
1399
 
1400
1400
 
1401
1401
  export const LCIDConversionAttribute: {
1402
- new(lcid: int): LCIDConversionAttribute$instance;
1402
+ new(lcid: int): LCIDConversionAttribute;
1403
1403
  };
1404
1404
 
1405
1405
 
1406
1406
  export type LCIDConversionAttribute = LCIDConversionAttribute$instance;
1407
1407
 
1408
1408
  export interface LibraryImportAttribute$instance extends Attribute {
1409
- entryPoint: string;
1409
+ entryPoint: string | undefined;
1410
1410
  readonly libraryName: string;
1411
1411
  setLastError: boolean;
1412
1412
  stringMarshalling: StringMarshalling;
1413
- stringMarshallingCustomType: Type;
1413
+ stringMarshallingCustomType: Type | undefined;
1414
1414
  }
1415
1415
 
1416
1416
 
1417
1417
  export const LibraryImportAttribute: {
1418
- new(libraryName: string): LibraryImportAttribute$instance;
1418
+ new(libraryName: string | undefined): LibraryImportAttribute;
1419
1419
  };
1420
1420
 
1421
1421
 
@@ -1428,7 +1428,7 @@ export interface ManagedToNativeComInteropStubAttribute$instance extends Attribu
1428
1428
 
1429
1429
 
1430
1430
  export const ManagedToNativeComInteropStubAttribute: {
1431
- new(classType: Type, methodName: string): ManagedToNativeComInteropStubAttribute$instance;
1431
+ new(classType: Type, methodName: string): ManagedToNativeComInteropStubAttribute;
1432
1432
  };
1433
1433
 
1434
1434
 
@@ -1436,21 +1436,21 @@ export type ManagedToNativeComInteropStubAttribute = ManagedToNativeComInteropSt
1436
1436
 
1437
1437
  export interface MarshalAsAttribute$instance extends Attribute {
1438
1438
  safeArraySubType: VarEnum;
1439
- safeArrayUserDefinedSubType: Type;
1439
+ safeArrayUserDefinedSubType: Type | undefined;
1440
1440
  iidParameterIndex: int;
1441
1441
  arraySubType: UnmanagedType;
1442
1442
  sizeParamIndex: short;
1443
1443
  sizeConst: int;
1444
- marshalType: string;
1445
- marshalTypeRef: Type;
1446
- marshalCookie: string;
1444
+ marshalType: string | undefined;
1445
+ marshalTypeRef: Type | undefined;
1446
+ marshalCookie: string | undefined;
1447
1447
  readonly value: UnmanagedType;
1448
1448
  }
1449
1449
 
1450
1450
 
1451
1451
  export const MarshalAsAttribute: {
1452
- new(unmanagedType: UnmanagedType): MarshalAsAttribute$instance;
1453
- new(unmanagedType: short): MarshalAsAttribute$instance;
1452
+ new(unmanagedType: UnmanagedType): MarshalAsAttribute;
1453
+ new(unmanagedType: short): MarshalAsAttribute;
1454
1454
  };
1455
1455
 
1456
1456
 
@@ -1462,9 +1462,9 @@ export interface MarshalDirectiveException$instance extends SystemException {
1462
1462
 
1463
1463
 
1464
1464
  export const MarshalDirectiveException: {
1465
- new(): MarshalDirectiveException$instance;
1466
- new(message: string): MarshalDirectiveException$instance;
1467
- new(message: string, inner: Exception): MarshalDirectiveException$instance;
1465
+ new(): MarshalDirectiveException;
1466
+ new(message: string | undefined): MarshalDirectiveException;
1467
+ new(message: string | undefined, inner: Exception | undefined): MarshalDirectiveException;
1468
1468
  };
1469
1469
 
1470
1470
 
@@ -1480,7 +1480,7 @@ export interface OptionalAttribute$instance extends Attribute {
1480
1480
 
1481
1481
 
1482
1482
  export const OptionalAttribute: {
1483
- new(): OptionalAttribute$instance;
1483
+ new(): OptionalAttribute;
1484
1484
  };
1485
1485
 
1486
1486
 
@@ -1491,7 +1491,7 @@ export interface OutAttribute$instance extends Attribute {
1491
1491
 
1492
1492
 
1493
1493
  export const OutAttribute: {
1494
- new(): OutAttribute$instance;
1494
+ new(): OutAttribute;
1495
1495
  };
1496
1496
 
1497
1497
 
@@ -1504,7 +1504,7 @@ export interface PosixSignalContext$instance {
1504
1504
 
1505
1505
 
1506
1506
  export const PosixSignalContext: {
1507
- new(signal: PosixSignal): PosixSignalContext$instance;
1507
+ new(signal: PosixSignal): PosixSignalContext;
1508
1508
  };
1509
1509
 
1510
1510
 
@@ -1516,7 +1516,7 @@ export interface PosixSignalRegistration$instance {
1516
1516
 
1517
1517
 
1518
1518
  export const PosixSignalRegistration: {
1519
- new(): PosixSignalRegistration$instance;
1519
+ new(): PosixSignalRegistration;
1520
1520
  create(signal: PosixSignal, handler: Action_1<PosixSignalContext>): PosixSignalRegistration;
1521
1521
  };
1522
1522
 
@@ -1535,7 +1535,7 @@ export interface PreserveSigAttribute$instance extends Attribute {
1535
1535
 
1536
1536
 
1537
1537
  export const PreserveSigAttribute: {
1538
- new(): PreserveSigAttribute$instance;
1538
+ new(): PreserveSigAttribute;
1539
1539
  };
1540
1540
 
1541
1541
 
@@ -1548,7 +1548,7 @@ export interface PrimaryInteropAssemblyAttribute$instance extends Attribute {
1548
1548
 
1549
1549
 
1550
1550
  export const PrimaryInteropAssemblyAttribute: {
1551
- new(major: int, minor: int): PrimaryInteropAssemblyAttribute$instance;
1551
+ new(major: int, minor: int): PrimaryInteropAssemblyAttribute;
1552
1552
  };
1553
1553
 
1554
1554
 
@@ -1560,7 +1560,7 @@ export interface ProgIdAttribute$instance extends Attribute {
1560
1560
 
1561
1561
 
1562
1562
  export const ProgIdAttribute: {
1563
- new(progId: string): ProgIdAttribute$instance;
1563
+ new(progId: string): ProgIdAttribute;
1564
1564
  };
1565
1565
 
1566
1566
 
@@ -1572,9 +1572,9 @@ export interface SafeArrayRankMismatchException$instance extends SystemException
1572
1572
 
1573
1573
 
1574
1574
  export const SafeArrayRankMismatchException: {
1575
- new(): SafeArrayRankMismatchException$instance;
1576
- new(message: string): SafeArrayRankMismatchException$instance;
1577
- new(message: string, inner: Exception): SafeArrayRankMismatchException$instance;
1575
+ new(): SafeArrayRankMismatchException;
1576
+ new(message: string | undefined): SafeArrayRankMismatchException;
1577
+ new(message: string | undefined, inner: Exception | undefined): SafeArrayRankMismatchException;
1578
1578
  };
1579
1579
 
1580
1580
 
@@ -1591,9 +1591,9 @@ export interface SafeArrayTypeMismatchException$instance extends SystemException
1591
1591
 
1592
1592
 
1593
1593
  export const SafeArrayTypeMismatchException: {
1594
- new(): SafeArrayTypeMismatchException$instance;
1595
- new(message: string): SafeArrayTypeMismatchException$instance;
1596
- new(message: string, inner: Exception): SafeArrayTypeMismatchException$instance;
1594
+ new(): SafeArrayTypeMismatchException;
1595
+ new(message: string | undefined): SafeArrayTypeMismatchException;
1596
+ new(message: string | undefined, inner: Exception | undefined): SafeArrayTypeMismatchException;
1597
1597
  };
1598
1598
 
1599
1599
 
@@ -1664,9 +1664,9 @@ export interface SEHException$instance extends ExternalException$instance {
1664
1664
 
1665
1665
 
1666
1666
  export const SEHException: {
1667
- new(): SEHException$instance;
1668
- new(message: string): SEHException$instance;
1669
- new(message: string, inner: Exception): SEHException$instance;
1667
+ new(): SEHException;
1668
+ new(message: string | undefined): SEHException;
1669
+ new(message: string | undefined, inner: Exception | undefined): SEHException;
1670
1670
  };
1671
1671
 
1672
1672
 
@@ -1682,7 +1682,7 @@ export interface StandardOleMarshalObject$instance extends MarshalByRefObject {
1682
1682
 
1683
1683
 
1684
1684
  export const StandardOleMarshalObject: {
1685
- new(): StandardOleMarshalObject$instance;
1685
+ new(): StandardOleMarshalObject;
1686
1686
  };
1687
1687
 
1688
1688
 
@@ -1697,8 +1697,8 @@ export interface StructLayoutAttribute$instance extends Attribute {
1697
1697
 
1698
1698
 
1699
1699
  export const StructLayoutAttribute: {
1700
- new(layoutKind: LayoutKind): StructLayoutAttribute$instance;
1701
- new(layoutKind: short): StructLayoutAttribute$instance;
1700
+ new(layoutKind: LayoutKind): StructLayoutAttribute;
1701
+ new(layoutKind: short): StructLayoutAttribute;
1702
1702
  };
1703
1703
 
1704
1704
 
@@ -1709,7 +1709,7 @@ export interface SuppressGCTransitionAttribute$instance extends Attribute {
1709
1709
 
1710
1710
 
1711
1711
  export const SuppressGCTransitionAttribute: {
1712
- new(): SuppressGCTransitionAttribute$instance;
1712
+ new(): SuppressGCTransitionAttribute;
1713
1713
  };
1714
1714
 
1715
1715
 
@@ -1717,13 +1717,13 @@ export type SuppressGCTransitionAttribute = SuppressGCTransitionAttribute$instan
1717
1717
 
1718
1718
  export interface TypeIdentifierAttribute$instance extends Attribute {
1719
1719
  readonly identifier: string;
1720
- readonly scope: string;
1720
+ readonly scope: string | undefined;
1721
1721
  }
1722
1722
 
1723
1723
 
1724
1724
  export const TypeIdentifierAttribute: {
1725
- new(): TypeIdentifierAttribute$instance;
1726
- new(scope: string, identifier: string): TypeIdentifierAttribute$instance;
1725
+ new(): TypeIdentifierAttribute;
1726
+ new(scope: string | undefined, identifier: string | undefined): TypeIdentifierAttribute;
1727
1727
  };
1728
1728
 
1729
1729
 
@@ -1735,8 +1735,8 @@ export interface TypeLibFuncAttribute$instance extends Attribute {
1735
1735
 
1736
1736
 
1737
1737
  export const TypeLibFuncAttribute: {
1738
- new(flags: TypeLibFuncFlags): TypeLibFuncAttribute$instance;
1739
- new(flags: short): TypeLibFuncAttribute$instance;
1738
+ new(flags: TypeLibFuncFlags): TypeLibFuncAttribute;
1739
+ new(flags: short): TypeLibFuncAttribute;
1740
1740
  };
1741
1741
 
1742
1742
 
@@ -1748,7 +1748,7 @@ export interface TypeLibImportClassAttribute$instance extends Attribute {
1748
1748
 
1749
1749
 
1750
1750
  export const TypeLibImportClassAttribute: {
1751
- new(importClass: Type): TypeLibImportClassAttribute$instance;
1751
+ new(importClass: Type): TypeLibImportClassAttribute;
1752
1752
  };
1753
1753
 
1754
1754
 
@@ -1760,8 +1760,8 @@ export interface TypeLibTypeAttribute$instance extends Attribute {
1760
1760
 
1761
1761
 
1762
1762
  export const TypeLibTypeAttribute: {
1763
- new(flags: TypeLibTypeFlags): TypeLibTypeAttribute$instance;
1764
- new(flags: short): TypeLibTypeAttribute$instance;
1763
+ new(flags: TypeLibTypeFlags): TypeLibTypeAttribute;
1764
+ new(flags: short): TypeLibTypeAttribute;
1765
1765
  };
1766
1766
 
1767
1767
 
@@ -1773,8 +1773,8 @@ export interface TypeLibVarAttribute$instance extends Attribute {
1773
1773
 
1774
1774
 
1775
1775
  export const TypeLibVarAttribute: {
1776
- new(flags: TypeLibVarFlags): TypeLibVarAttribute$instance;
1777
- new(flags: short): TypeLibVarAttribute$instance;
1776
+ new(flags: TypeLibVarFlags): TypeLibVarAttribute;
1777
+ new(flags: short): TypeLibVarAttribute;
1778
1778
  };
1779
1779
 
1780
1780
 
@@ -1787,7 +1787,7 @@ export interface TypeLibVersionAttribute$instance extends Attribute {
1787
1787
 
1788
1788
 
1789
1789
  export const TypeLibVersionAttribute: {
1790
- new(major: int, minor: int): TypeLibVersionAttribute$instance;
1790
+ new(major: int, minor: int): TypeLibVersionAttribute;
1791
1791
  };
1792
1792
 
1793
1793
 
@@ -1798,7 +1798,7 @@ export interface TypeMapAssemblyTargetAttribute_1$instance<TTypeMapGroup> extend
1798
1798
 
1799
1799
 
1800
1800
  export const TypeMapAssemblyTargetAttribute_1: {
1801
- new<TTypeMapGroup>(assemblyName: string): TypeMapAssemblyTargetAttribute_1$instance<TTypeMapGroup>;
1801
+ new<TTypeMapGroup>(assemblyName: string): TypeMapAssemblyTargetAttribute_1<TTypeMapGroup>;
1802
1802
  };
1803
1803
 
1804
1804
 
@@ -1809,7 +1809,7 @@ export interface TypeMapAssociationAttribute_1$instance<TTypeMapGroup> extends A
1809
1809
 
1810
1810
 
1811
1811
  export const TypeMapAssociationAttribute_1: {
1812
- new<TTypeMapGroup>(source: Type, proxy: Type): TypeMapAssociationAttribute_1$instance<TTypeMapGroup>;
1812
+ new<TTypeMapGroup>(source: Type, proxy: Type): TypeMapAssociationAttribute_1<TTypeMapGroup>;
1813
1813
  };
1814
1814
 
1815
1815
 
@@ -1820,45 +1820,45 @@ export interface TypeMapAttribute_1$instance<TTypeMapGroup> extends Attribute {
1820
1820
 
1821
1821
 
1822
1822
  export const TypeMapAttribute_1: {
1823
- new<TTypeMapGroup>(value: string, target: Type): TypeMapAttribute_1$instance<TTypeMapGroup>;
1824
- new<TTypeMapGroup>(value: string, target: Type, trimTarget: Type): TypeMapAttribute_1$instance<TTypeMapGroup>;
1823
+ new<TTypeMapGroup>(value: string, target: Type): TypeMapAttribute_1<TTypeMapGroup>;
1824
+ new<TTypeMapGroup>(value: string, target: Type, trimTarget: Type): TypeMapAttribute_1<TTypeMapGroup>;
1825
1825
  };
1826
1826
 
1827
1827
 
1828
1828
  export type TypeMapAttribute_1<TTypeMapGroup> = TypeMapAttribute_1$instance<TTypeMapGroup>;
1829
1829
 
1830
1830
  export interface UnknownWrapper$instance {
1831
- readonly wrappedObject: unknown;
1831
+ readonly wrappedObject: unknown | undefined;
1832
1832
  }
1833
1833
 
1834
1834
 
1835
1835
  export const UnknownWrapper: {
1836
- new(obj: unknown): UnknownWrapper$instance;
1836
+ new(obj: unknown | undefined): UnknownWrapper;
1837
1837
  };
1838
1838
 
1839
1839
 
1840
1840
  export type UnknownWrapper = UnknownWrapper$instance;
1841
1841
 
1842
1842
  export interface UnmanagedCallConvAttribute$instance extends Attribute {
1843
- callConvs: Type[];
1843
+ callConvs: Type[] | undefined;
1844
1844
  }
1845
1845
 
1846
1846
 
1847
1847
  export const UnmanagedCallConvAttribute: {
1848
- new(): UnmanagedCallConvAttribute$instance;
1848
+ new(): UnmanagedCallConvAttribute;
1849
1849
  };
1850
1850
 
1851
1851
 
1852
1852
  export type UnmanagedCallConvAttribute = UnmanagedCallConvAttribute$instance;
1853
1853
 
1854
1854
  export interface UnmanagedCallersOnlyAttribute$instance extends Attribute {
1855
- callConvs: Type[];
1856
- entryPoint: string;
1855
+ callConvs: Type[] | undefined;
1856
+ entryPoint: string | undefined;
1857
1857
  }
1858
1858
 
1859
1859
 
1860
1860
  export const UnmanagedCallersOnlyAttribute: {
1861
- new(): UnmanagedCallersOnlyAttribute$instance;
1861
+ new(): UnmanagedCallersOnlyAttribute;
1862
1862
  };
1863
1863
 
1864
1864
 
@@ -1874,19 +1874,19 @@ export interface UnmanagedFunctionPointerAttribute$instance extends Attribute {
1874
1874
 
1875
1875
 
1876
1876
  export const UnmanagedFunctionPointerAttribute: {
1877
- new(callingConvention: CallingConvention): UnmanagedFunctionPointerAttribute$instance;
1877
+ new(callingConvention: CallingConvention): UnmanagedFunctionPointerAttribute;
1878
1878
  };
1879
1879
 
1880
1880
 
1881
1881
  export type UnmanagedFunctionPointerAttribute = UnmanagedFunctionPointerAttribute$instance;
1882
1882
 
1883
1883
  export interface VariantWrapper$instance {
1884
- readonly wrappedObject: unknown;
1884
+ readonly wrappedObject: unknown | undefined;
1885
1885
  }
1886
1886
 
1887
1887
 
1888
1888
  export const VariantWrapper: {
1889
- new(obj: unknown): VariantWrapper$instance;
1889
+ new(obj: unknown | undefined): VariantWrapper;
1890
1890
  };
1891
1891
 
1892
1892
 
@@ -1897,17 +1897,17 @@ export interface WasmImportLinkageAttribute$instance extends Attribute {
1897
1897
 
1898
1898
 
1899
1899
  export const WasmImportLinkageAttribute: {
1900
- new(): WasmImportLinkageAttribute$instance;
1900
+ new(): WasmImportLinkageAttribute;
1901
1901
  };
1902
1902
 
1903
1903
 
1904
1904
  export type WasmImportLinkageAttribute = WasmImportLinkageAttribute$instance;
1905
1905
 
1906
1906
  export abstract class CollectionsMarshal$instance {
1907
- static asBytes(array: BitArray): Span_1<System_Internal.Byte>;
1908
- static asSpan<T>(list: List_1<T>): Span_1<T>;
1909
- static getValueRefOrAddDefault<TKey, TValue, TAlternateKey>(dictionary: Dictionary_2_AlternateLookup_1<TKey, TValue, TAlternateKey>, key: TAlternateKey, exists: boolean): TValue;
1910
- static getValueRefOrAddDefault<TKey, TValue>(dictionary: Dictionary_2<TKey, TValue>, key: TKey, exists: boolean): TValue;
1907
+ static asBytes(array: BitArray | undefined): Span_1<System_Internal.Byte>;
1908
+ static asSpan<T>(list: List_1<T> | undefined): Span_1<T>;
1909
+ static getValueRefOrAddDefault<TKey, TValue, TAlternateKey>(dictionary: Dictionary_2_AlternateLookup_1<TKey, TValue, TAlternateKey>, key: TAlternateKey, exists: boolean): TValue | undefined;
1910
+ static getValueRefOrAddDefault<TKey, TValue>(dictionary: Dictionary_2<TKey, TValue>, key: TKey, exists: boolean): TValue | undefined;
1911
1911
  static getValueRefOrNullRef<TKey, TValue, TAlternateKey>(dictionary: Dictionary_2_AlternateLookup_1<TKey, TValue, TAlternateKey>, key: TAlternateKey): TValue;
1912
1912
  static getValueRefOrNullRef<TKey, TValue>(dictionary: Dictionary_2<TKey, TValue>, key: TKey): TValue;
1913
1913
  static setCount<T>(list: List_1<T>, count: int): void;
@@ -1933,9 +1933,9 @@ export abstract class GCHandleExtensions$instance {
1933
1933
  export type GCHandleExtensions = GCHandleExtensions$instance;
1934
1934
 
1935
1935
  export abstract class ImmutableCollectionsMarshal$instance {
1936
- static asArray<T>(array: ImmutableArray_1<T>): T[];
1937
- static asImmutableArray<T>(array: T[]): ImmutableArray_1<T>;
1938
- static asMemory<T>(builder: ImmutableArray_1_Builder<T>): Memory_1<T>;
1936
+ static asArray<T>(array: ImmutableArray_1<T>): T[] | undefined;
1937
+ static asImmutableArray<T>(array: T[] | undefined): ImmutableArray_1<T>;
1938
+ static asMemory<T>(builder: ImmutableArray_1_Builder<T> | undefined): Memory_1<T>;
1939
1939
  }
1940
1940
 
1941
1941
 
@@ -1987,11 +1987,11 @@ export abstract class Marshal$instance {
1987
1987
  static freeCoTaskMem(ptr: nint): void;
1988
1988
  static freeHGlobal(hglobal: nint): void;
1989
1989
  static generateGuidForType(type_: Type): Guid;
1990
- static generateProgIdForType(type_: Type): string;
1990
+ static generateProgIdForType(type_: Type): string | undefined;
1991
1991
  static getComInterfaceForObject(o: unknown, T: Type, mode: CustomQueryInterfaceMode): nint;
1992
1992
  static getComInterfaceForObject(o: unknown, T: Type): nint;
1993
1993
  static getComInterfaceForObject<T, TInterface>(o: T): nint;
1994
- static getComObjectData(obj: unknown, key: unknown): unknown;
1994
+ static getComObjectData(obj: unknown, key: unknown): unknown | undefined;
1995
1995
  static getDelegateForFunctionPointer(ptr: nint, t: Type): Function;
1996
1996
  static getDelegateForFunctionPointer<TDelegate>(ptr: nint): TDelegate;
1997
1997
  static getEndComSlot(t: Type): int;
@@ -2016,7 +2016,7 @@ export abstract class Marshal$instance {
2016
2016
  static getObjectForIUnknown(pUnk: nint): unknown;
2017
2017
  static getObjectForNativeVariant(pSrcNativeVariant: nint): unknown;
2018
2018
  static getObjectForNativeVariant<T>(pSrcNativeVariant: nint): T;
2019
- static getObjectsForNativeVariants(aSrcNativeVariant: nint, cVars: int): unknown[];
2019
+ static getObjectsForNativeVariants(aSrcNativeVariant: nint, cVars: int): (unknown | undefined)[];
2020
2020
  static getObjectsForNativeVariants<T>(aSrcNativeVariant: nint, cVars: int): T[];
2021
2021
  static getPInvokeErrorMessage(error: int): string;
2022
2022
  static getStartComSlot(t: Type): int;
@@ -2041,7 +2041,7 @@ export abstract class Marshal$instance {
2041
2041
  static ptrToStringUTF8(ptr: nint, byteLen: int): string;
2042
2042
  static ptrToStringUTF8(ptr: nint): string;
2043
2043
  static ptrToStructure(ptr: nint, structure: unknown): void;
2044
- static ptrToStructure(ptr: nint, structureType: Type): unknown;
2044
+ static ptrToStructure(ptr: nint, structureType: Type): unknown | undefined;
2045
2045
  static ptrToStructure<T>(ptr: nint, structure: T): void;
2046
2046
  static ptrToStructure<T>(ptr: nint): T;
2047
2047
  static queryInterface(pUnk: nint, iid: Guid, ppv: nint): int;
@@ -2069,7 +2069,7 @@ export abstract class Marshal$instance {
2069
2069
  static secureStringToCoTaskMemUnicode(s: SecureString): nint;
2070
2070
  static secureStringToGlobalAllocAnsi(s: SecureString): nint;
2071
2071
  static secureStringToGlobalAllocUnicode(s: SecureString): nint;
2072
- static setComObjectData(obj: unknown, key: unknown, data: unknown): boolean;
2072
+ static setComObjectData(obj: unknown, key: unknown, data: unknown | undefined): boolean;
2073
2073
  static setLastPInvokeError(error: int): void;
2074
2074
  static setLastSystemError(error: int): void;
2075
2075
  static sizeOf<T>(): int;
@@ -2128,7 +2128,7 @@ export abstract class MemoryMarshal$instance {
2128
2128
  static asRef<T extends unknown>(span: Span_1<System_Internal.Byte>): T;
2129
2129
  static cast<TFrom extends unknown, TTo extends unknown>(span: ReadOnlySpan_1<TFrom>): ReadOnlySpan_1<TTo>;
2130
2130
  static cast<TFrom extends unknown, TTo extends unknown>(span: Span_1<TFrom>): Span_1<TTo>;
2131
- static createFromPinnedArray<T>(array: T[], start: int, length: int): Memory_1<T>;
2131
+ static createFromPinnedArray<T>(array: T[] | undefined, start: int, length: int): Memory_1<T>;
2132
2132
  static createReadOnlySpan<T>(reference: T, length: int): ReadOnlySpan_1<T>;
2133
2133
  static createReadOnlySpanFromNullTerminated(value: ptr<byte>): ReadOnlySpan_1<System_Internal.Byte>;
2134
2134
  static createReadOnlySpanFromNullTerminated(value: ptr<char>): ReadOnlySpan_1<System_Internal.Char>;
@@ -2142,7 +2142,7 @@ export abstract class MemoryMarshal$instance {
2142
2142
  static tryGetArray<T>(memory: ReadOnlyMemory_1<T>, segment: ArraySegment_1<T>): boolean;
2143
2143
  static tryGetMemoryManager<T, TManager extends MemoryManager_1<T>>(memory: ReadOnlyMemory_1<T>, manager: TManager, start: int, length: int): boolean;
2144
2144
  static tryGetMemoryManager<T, TManager extends MemoryManager_1<T>>(memory: ReadOnlyMemory_1<T>, manager: TManager): boolean;
2145
- static tryGetString(memory: ReadOnlyMemory_1<System_Internal.Char>, text: string, start: int, length: int): boolean;
2145
+ static tryGetString(memory: ReadOnlyMemory_1<System_Internal.Char>, text: string | undefined, start: int, length: int): boolean;
2146
2146
  static tryRead<T extends unknown>(source: ReadOnlySpan_1<System_Internal.Byte>, value: T): boolean;
2147
2147
  static tryWrite<T extends unknown>(destination: Span_1<System_Internal.Byte>, value: T): boolean;
2148
2148
  static write<T extends unknown>(destination: Span_1<System_Internal.Byte>, value: T): void;
@@ -2211,7 +2211,7 @@ export type RuntimeInformation = RuntimeInformation$instance;
2211
2211
  export abstract class SequenceMarshal$instance {
2212
2212
  static tryGetArray<T>(sequence: ReadOnlySequence_1<T>, segment: ArraySegment_1<T>): boolean;
2213
2213
  static tryGetReadOnlyMemory<T>(sequence: ReadOnlySequence_1<T>, memory: ReadOnlyMemory_1<T>): boolean;
2214
- static tryGetReadOnlySequenceSegment<T>(sequence: ReadOnlySequence_1<T>, startSegment: ReadOnlySequenceSegment_1<T>, startIndex: int, endSegment: ReadOnlySequenceSegment_1<T>, endIndex: int): boolean;
2214
+ static tryGetReadOnlySequenceSegment<T>(sequence: ReadOnlySequence_1<T>, startSegment: ReadOnlySequenceSegment_1<T> | undefined, startIndex: int, endSegment: ReadOnlySequenceSegment_1<T> | undefined, endIndex: int): boolean;
2215
2215
  static tryRead<T extends unknown>(reader: SequenceReader_1<System_Internal.Byte>, value: T): boolean;
2216
2216
  }
2217
2217