@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.
Files changed (127) hide show
  1. package/Microsoft.CSharp.RuntimeBinder/internal/index.d.ts +18 -18
  2. package/Microsoft.VisualBasic/internal/index.d.ts +1 -1
  3. package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +1 -1
  4. package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +1 -1
  5. package/Microsoft.Win32/internal/index.d.ts +11 -11
  6. package/System/bindings.json +114 -114
  7. package/System/internal/index.d.ts +994 -1006
  8. package/System/internal/metadata.json +73 -73
  9. package/System.Buffers/internal/index.d.ts +3 -3
  10. package/System.CodeDom.Compiler/internal/index.d.ts +11 -11
  11. package/System.Collections/internal/index.d.ts +26 -28
  12. package/System.Collections.Concurrent/internal/index.d.ts +10 -10
  13. package/System.Collections.Frozen/bindings.json +20 -20
  14. package/System.Collections.Frozen/internal/index.d.ts +6 -6
  15. package/System.Collections.Frozen/internal/metadata.json +10 -10
  16. package/System.Collections.Generic/bindings.json +44 -20
  17. package/System.Collections.Generic/internal/index.d.ts +68 -60
  18. package/System.Collections.Generic/internal/metadata.json +26 -10
  19. package/System.Collections.Immutable/internal/index.d.ts +99 -99
  20. package/System.Collections.ObjectModel/internal/index.d.ts +15 -15
  21. package/System.Collections.Specialized/internal/index.d.ts +63 -65
  22. package/System.ComponentModel/internal/index.d.ts +428 -430
  23. package/System.ComponentModel.DataAnnotations/internal/index.d.ts +66 -66
  24. package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +2 -2
  25. package/System.ComponentModel.Design/internal/index.d.ts +72 -72
  26. package/System.ComponentModel.Design.Serialization/internal/index.d.ts +33 -33
  27. package/System.Data/internal/index.d.ts +168 -168
  28. package/System.Data.Common/internal/index.d.ts +48 -48
  29. package/System.Data.SqlTypes/internal/index.d.ts +21 -21
  30. package/System.Diagnostics/internal/index.d.ts +262 -262
  31. package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +25 -25
  32. package/System.Diagnostics.Contracts/internal/index.d.ts +8 -8
  33. package/System.Diagnostics.Metrics/internal/index.d.ts +33 -33
  34. package/System.Diagnostics.SymbolStore/internal/index.d.ts +5 -5
  35. package/System.Diagnostics.Tracing/internal/index.d.ts +28 -28
  36. package/System.Drawing/internal/index.d.ts +77 -77
  37. package/System.Dynamic/internal/index.d.ts +27 -27
  38. package/System.Formats.Asn1/internal/index.d.ts +4 -4
  39. package/System.Formats.Tar/internal/index.d.ts +3 -3
  40. package/System.Globalization/internal/index.d.ts +18 -18
  41. package/System.IO/internal/index.d.ts +107 -107
  42. package/System.IO.Compression/internal/index.d.ts +25 -25
  43. package/System.IO.Enumeration/internal/index.d.ts +5 -5
  44. package/System.IO.IsolatedStorage/internal/index.d.ts +9 -9
  45. package/System.IO.MemoryMappedFiles/internal/index.d.ts +8 -8
  46. package/System.IO.Pipelines/internal/index.d.ts +5 -5
  47. package/System.IO.Pipes/internal/index.d.ts +4 -4
  48. package/System.Linq/internal/index.d.ts +180 -180
  49. package/System.Linq.Expressions/internal/index.d.ts +169 -169
  50. package/System.Linq.Expressions.Interpreter/internal/index.d.ts +2 -2
  51. package/System.Net/internal/index.d.ts +151 -153
  52. package/System.Net.Cache/internal/index.d.ts +2 -2
  53. package/System.Net.Http/internal/index.d.ts +58 -58
  54. package/System.Net.Http.Headers/internal/index.d.ts +48 -48
  55. package/System.Net.Http.Json/internal/index.d.ts +58 -58
  56. package/System.Net.Http.Metrics/internal/index.d.ts +1 -1
  57. package/System.Net.Mail/internal/index.d.ts +72 -72
  58. package/System.Net.Mime/internal/index.d.ts +2 -2
  59. package/System.Net.NetworkInformation/internal/index.d.ts +24 -24
  60. package/System.Net.Quic/internal/index.d.ts +4 -4
  61. package/System.Net.Security/internal/index.d.ts +52 -52
  62. package/System.Net.ServerSentEvents/internal/index.d.ts +2 -2
  63. package/System.Net.Sockets/internal/index.d.ts +41 -41
  64. package/System.Net.WebSockets/internal/index.d.ts +34 -34
  65. package/System.Numerics/bindings.json +384 -0
  66. package/System.Numerics/internal/index.d.ts +91 -93
  67. package/System.Numerics/internal/metadata.json +256 -0
  68. package/System.Reflection/internal/index.d.ts +219 -219
  69. package/System.Reflection.Emit/internal/index.d.ts +118 -118
  70. package/System.Reflection.Metadata/bindings.json +48 -0
  71. package/System.Reflection.Metadata/internal/index.d.ts +14 -14
  72. package/System.Reflection.Metadata/internal/metadata.json +32 -0
  73. package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +5 -5
  74. package/System.Reflection.PortableExecutable/internal/index.d.ts +4 -4
  75. package/System.Resources/internal/index.d.ts +24 -24
  76. package/System.Runtime/internal/index.d.ts +5 -5
  77. package/System.Runtime.CompilerServices/internal/index.d.ts +31 -31
  78. package/System.Runtime.InteropServices/bindings.json +22 -22
  79. package/System.Runtime.InteropServices/internal/index.d.ts +93 -93
  80. package/System.Runtime.InteropServices/internal/metadata.json +13 -13
  81. package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +10 -10
  82. package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +23 -23
  83. package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +36 -36
  84. package/System.Runtime.Loader/internal/index.d.ts +6 -6
  85. package/System.Runtime.Remoting/internal/index.d.ts +2 -2
  86. package/System.Runtime.Serialization/internal/index.d.ts +77 -79
  87. package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +16 -16
  88. package/System.Runtime.Serialization.Formatters/internal/index.d.ts +2 -2
  89. package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +4 -4
  90. package/System.Runtime.Serialization.Json/internal/index.d.ts +26 -26
  91. package/System.Runtime.Versioning/internal/index.d.ts +9 -9
  92. package/System.Security/internal/index.d.ts +49 -49
  93. package/System.Security.AccessControl/internal/index.d.ts +31 -31
  94. package/System.Security.Authentication/internal/index.d.ts +4 -4
  95. package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +10 -10
  96. package/System.Security.Claims/internal/index.d.ts +23 -25
  97. package/System.Security.Cryptography/internal/index.d.ts +189 -189
  98. package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +71 -71
  99. package/System.Security.Policy/internal/index.d.ts +2 -2
  100. package/System.Security.Principal/internal/index.d.ts +9 -11
  101. package/System.Text/internal/index.d.ts +51 -51
  102. package/System.Text.Json/internal/index.d.ts +83 -83
  103. package/System.Text.Json.Nodes/internal/index.d.ts +65 -65
  104. package/System.Text.Json.Schema/internal/index.d.ts +5 -5
  105. package/System.Text.Json.Serialization/internal/index.d.ts +10 -10
  106. package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +47 -47
  107. package/System.Text.RegularExpressions/internal/index.d.ts +5 -5
  108. package/System.Text.Unicode/internal/index.d.ts +4 -4
  109. package/System.Threading/internal/index.d.ts +87 -87
  110. package/System.Threading.Channels/internal/index.d.ts +8 -8
  111. package/System.Threading.Tasks/internal/index.d.ts +84 -94
  112. package/System.Threading.Tasks.Dataflow/internal/index.d.ts +29 -26
  113. package/System.Threading.Tasks.Sources/internal/index.d.ts +4 -4
  114. package/System.Timers/internal/index.d.ts +3 -3
  115. package/System.Transactions/internal/index.d.ts +20 -20
  116. package/System.Web/internal/index.d.ts +31 -31
  117. package/System.Windows.Input/internal/index.d.ts +2 -2
  118. package/System.Xml/internal/index.d.ts +215 -215
  119. package/System.Xml.Linq/internal/index.d.ts +51 -51
  120. package/System.Xml.Resolvers/internal/index.d.ts +4 -4
  121. package/System.Xml.Schema/internal/index.d.ts +105 -105
  122. package/System.Xml.Serialization/internal/index.d.ts +136 -136
  123. package/System.Xml.XPath/internal/index.d.ts +19 -19
  124. package/System.Xml.Xsl/internal/index.d.ts +41 -41
  125. package/System.Xml.Xsl.Runtime/internal/index.d.ts +20 -20
  126. package/__internal/extensions/index.d.ts +415 -414
  127. package/package.json +1 -1
@@ -23352,7 +23352,7 @@
23352
23352
  {
23353
23353
  "stableId": "System.Private.CoreLib:System.Numerics.IFloatingPoint\u00601::Round(TSelf,System.MidpointRounding):TSelf",
23354
23354
  "clrName": "Round",
23355
- "tsEmitName": "round$view3",
23355
+ "tsEmitName": "round$view2",
23356
23356
  "metadataToken": 100675854,
23357
23357
  "canonicalSignature": "(TSelf,System.MidpointRounding):TSelf",
23358
23358
  "normalizedSignature": "Round|(TSelf,System.MidpointRounding):TSelf|static=false",
@@ -23696,29 +23696,29 @@
23696
23696
  "isExtensionMethod": false
23697
23697
  },
23698
23698
  {
23699
- "stableId": "System.Private.CoreLib:System.Numerics.IFloatingPoint\u00601::Ceiling(TSelf):TSelf",
23700
- "clrName": "Ceiling",
23701
- "tsEmitName": "ceiling$view",
23702
- "metadataToken": 100675848,
23703
- "canonicalSignature": "(TSelf):TSelf",
23704
- "normalizedSignature": "Ceiling|(TSelf):TSelf|static=false",
23699
+ "stableId": "System.Private.CoreLib:System.Numerics.IFloatingPoint\u00601::Round(TSelf,System.Int32):TSelf",
23700
+ "clrName": "Round",
23701
+ "tsEmitName": "round$view",
23702
+ "metadataToken": 100675853,
23703
+ "canonicalSignature": "(TSelf,System.Int32):TSelf",
23704
+ "normalizedSignature": "Round|(TSelf,System.Int32):TSelf|static=false",
23705
23705
  "emitScope": "ViewOnly",
23706
23706
  "arity": 0,
23707
- "parameterCount": 1,
23707
+ "parameterCount": 2,
23708
23708
  "declaringClrType": "System.Numerics.IFloatingPoint\u00601",
23709
23709
  "declaringAssemblyName": "System.Private.CoreLib",
23710
23710
  "isExtensionMethod": false
23711
23711
  },
23712
23712
  {
23713
- "stableId": "System.Private.CoreLib:System.Numerics.IFloatingPoint\u00601::Round(TSelf,System.Int32):TSelf",
23714
- "clrName": "Round",
23715
- "tsEmitName": "round$view2",
23716
- "metadataToken": 100675853,
23717
- "canonicalSignature": "(TSelf,System.Int32):TSelf",
23718
- "normalizedSignature": "Round|(TSelf,System.Int32):TSelf|static=false",
23713
+ "stableId": "System.Private.CoreLib:System.Numerics.IFloatingPoint\u00601::Ceiling(TSelf):TSelf",
23714
+ "clrName": "Ceiling",
23715
+ "tsEmitName": "ceiling$view",
23716
+ "metadataToken": 100675848,
23717
+ "canonicalSignature": "(TSelf):TSelf",
23718
+ "normalizedSignature": "Ceiling|(TSelf):TSelf|static=false",
23719
23719
  "emitScope": "ViewOnly",
23720
23720
  "arity": 0,
23721
- "parameterCount": 2,
23721
+ "parameterCount": 1,
23722
23722
  "declaringClrType": "System.Numerics.IFloatingPoint\u00601",
23723
23723
  "declaringAssemblyName": "System.Private.CoreLib",
23724
23724
  "isExtensionMethod": false
@@ -25660,7 +25660,7 @@
25660
25660
  }
25661
25661
  },
25662
25662
  {
25663
- "tsName": "round$view3",
25663
+ "tsName": "round$view2",
25664
25664
  "isStatic": false,
25665
25665
  "tsSignatureId": "Round|(TSelf,System.MidpointRounding):TSelf|static=false",
25666
25666
  "target": {
@@ -25890,23 +25890,23 @@
25890
25890
  }
25891
25891
  },
25892
25892
  {
25893
- "tsName": "ceiling$view",
25893
+ "tsName": "round$view",
25894
25894
  "isStatic": false,
25895
- "tsSignatureId": "Ceiling|(TSelf):TSelf|static=false",
25895
+ "tsSignatureId": "Round|(TSelf,System.Int32):TSelf|static=false",
25896
25896
  "target": {
25897
25897
  "declaringClrType": "System.Numerics.IFloatingPoint\u00601",
25898
25898
  "declaringAssemblyName": "System.Private.CoreLib",
25899
- "metadataToken": 100675848
25899
+ "metadataToken": 100675853
25900
25900
  }
25901
25901
  },
25902
25902
  {
25903
- "tsName": "round$view2",
25903
+ "tsName": "ceiling$view",
25904
25904
  "isStatic": false,
25905
- "tsSignatureId": "Round|(TSelf,System.Int32):TSelf|static=false",
25905
+ "tsSignatureId": "Ceiling|(TSelf):TSelf|static=false",
25906
25906
  "target": {
25907
25907
  "declaringClrType": "System.Numerics.IFloatingPoint\u00601",
25908
25908
  "declaringAssemblyName": "System.Private.CoreLib",
25909
- "metadataToken": 100675853
25909
+ "metadataToken": 100675848
25910
25910
  }
25911
25911
  },
25912
25912
  {
@@ -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;
409
+ new(array: unknown | undefined, offset: int): ArrayWithOffset;
410
410
  };
411
411
 
412
412
 
@@ -425,7 +425,7 @@ 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
 
@@ -476,7 +476,7 @@ 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
 
@@ -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;
@@ -509,8 +509,8 @@ export interface GCHandle$instance {
509
509
 
510
510
  export const GCHandle: {
511
511
  new(): GCHandle;
512
- alloc(value: unknown, type_: GCHandleType): GCHandle;
513
- alloc(value: unknown): 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
  };
@@ -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;
566
+ new(wrapper: unknown | undefined, handle: nint): HandleRef;
567
567
  toIntPtr(value: HandleRef): nint;
568
568
  };
569
569
 
@@ -577,12 +577,12 @@ 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
 
@@ -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;
@@ -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<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
  };
@@ -876,13 +876,13 @@ export const BestFitMappingAttribute: {
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;
885
- new(value: unknown): BStrWrapper;
884
+ new(value: string | undefined): BStrWrapper;
885
+ new(value: unknown | undefined): BStrWrapper;
886
886
  };
887
887
 
888
888
 
@@ -931,20 +931,20 @@ 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
  }
@@ -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
1023
  new(): COMException;
1024
- new(message: string): COMException;
1025
- new(message: string, inner: Exception): COMException;
1026
- new(message: string, errorCode: int): 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
 
@@ -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
  }
@@ -1180,19 +1180,19 @@ export interface DefaultParameterValueAttribute$instance extends Attribute {
1180
1180
 
1181
1181
 
1182
1182
  export const DefaultParameterValueAttribute: {
1183
- new(value: unknown): DefaultParameterValueAttribute;
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;
1195
+ new(obj: unknown | undefined): DispatchWrapper;
1196
1196
  };
1197
1197
 
1198
1198
 
@@ -1211,7 +1211,7 @@ export const DispIdAttribute: {
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;
@@ -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
1266
  new(): ExternalException;
1267
- new(message: string): ExternalException;
1268
- new(message: string, inner: Exception): ExternalException;
1269
- new(message: string, errorCode: int): 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
 
@@ -1362,8 +1362,8 @@ export interface InvalidComObjectException$instance extends SystemException {
1362
1362
 
1363
1363
  export const InvalidComObjectException: {
1364
1364
  new(): InvalidComObjectException;
1365
- new(message: string): InvalidComObjectException;
1366
- new(message: string, inner: Exception): InvalidComObjectException;
1365
+ new(message: string | undefined): InvalidComObjectException;
1366
+ new(message: string | undefined, inner: Exception | undefined): InvalidComObjectException;
1367
1367
  };
1368
1368
 
1369
1369
 
@@ -1381,8 +1381,8 @@ export interface InvalidOleVariantTypeException$instance extends SystemException
1381
1381
 
1382
1382
  export const InvalidOleVariantTypeException: {
1383
1383
  new(): InvalidOleVariantTypeException;
1384
- new(message: string): InvalidOleVariantTypeException;
1385
- new(message: string, inner: Exception): InvalidOleVariantTypeException;
1384
+ new(message: string | undefined): InvalidOleVariantTypeException;
1385
+ new(message: string | undefined, inner: Exception | undefined): InvalidOleVariantTypeException;
1386
1386
  };
1387
1387
 
1388
1388
 
@@ -1406,16 +1406,16 @@ export const LCIDConversionAttribute: {
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;
1418
+ new(libraryName: string | undefined): LibraryImportAttribute;
1419
1419
  };
1420
1420
 
1421
1421
 
@@ -1436,14 +1436,14 @@ 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
 
@@ -1463,8 +1463,8 @@ export interface MarshalDirectiveException$instance extends SystemException {
1463
1463
 
1464
1464
  export const MarshalDirectiveException: {
1465
1465
  new(): MarshalDirectiveException;
1466
- new(message: string): MarshalDirectiveException;
1467
- new(message: string, inner: Exception): MarshalDirectiveException;
1466
+ new(message: string | undefined): MarshalDirectiveException;
1467
+ new(message: string | undefined, inner: Exception | undefined): MarshalDirectiveException;
1468
1468
  };
1469
1469
 
1470
1470
 
@@ -1573,8 +1573,8 @@ export interface SafeArrayRankMismatchException$instance extends SystemException
1573
1573
 
1574
1574
  export const SafeArrayRankMismatchException: {
1575
1575
  new(): SafeArrayRankMismatchException;
1576
- new(message: string): SafeArrayRankMismatchException;
1577
- new(message: string, inner: Exception): SafeArrayRankMismatchException;
1576
+ new(message: string | undefined): SafeArrayRankMismatchException;
1577
+ new(message: string | undefined, inner: Exception | undefined): SafeArrayRankMismatchException;
1578
1578
  };
1579
1579
 
1580
1580
 
@@ -1592,8 +1592,8 @@ export interface SafeArrayTypeMismatchException$instance extends SystemException
1592
1592
 
1593
1593
  export const SafeArrayTypeMismatchException: {
1594
1594
  new(): SafeArrayTypeMismatchException;
1595
- new(message: string): SafeArrayTypeMismatchException;
1596
- new(message: string, inner: Exception): SafeArrayTypeMismatchException;
1595
+ new(message: string | undefined): SafeArrayTypeMismatchException;
1596
+ new(message: string | undefined, inner: Exception | undefined): SafeArrayTypeMismatchException;
1597
1597
  };
1598
1598
 
1599
1599
 
@@ -1665,8 +1665,8 @@ export interface SEHException$instance extends ExternalException$instance {
1665
1665
 
1666
1666
  export const SEHException: {
1667
1667
  new(): SEHException;
1668
- new(message: string): SEHException;
1669
- new(message: string, inner: Exception): SEHException;
1668
+ new(message: string | undefined): SEHException;
1669
+ new(message: string | undefined, inner: Exception | undefined): SEHException;
1670
1670
  };
1671
1671
 
1672
1672
 
@@ -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
1725
  new(): TypeIdentifierAttribute;
1726
- new(scope: string, identifier: string): TypeIdentifierAttribute;
1726
+ new(scope: string | undefined, identifier: string | undefined): TypeIdentifierAttribute;
1727
1727
  };
1728
1728
 
1729
1729
 
@@ -1828,19 +1828,19 @@ export const TypeMapAttribute_1: {
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;
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
 
@@ -1852,8 +1852,8 @@ export const UnmanagedCallConvAttribute: {
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
 
@@ -1881,12 +1881,12 @@ export const UnmanagedFunctionPointerAttribute: {
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;
1889
+ new(obj: unknown | undefined): VariantWrapper;
1890
1890
  };
1891
1891
 
1892
1892
 
@@ -1904,10 +1904,10 @@ export const WasmImportLinkageAttribute: {
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