@tsonic/dotnet 10.0.39 → 10.0.41

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 (187) hide show
  1. package/Internal/internal/index.d.ts +4 -3
  2. package/Microsoft.CSharp.RuntimeBinder/internal/index.d.ts +19 -18
  3. package/Microsoft.VisualBasic/internal/index.d.ts +52 -54
  4. package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +117 -119
  5. package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +3 -2
  6. package/Microsoft.Win32/internal/index.d.ts +19 -18
  7. package/Microsoft.Win32.SafeHandles/internal/index.d.ts +3 -2
  8. package/README.md +76 -104
  9. package/System/bindings.json +1520 -2039
  10. package/System/internal/index.d.ts +1549 -1602
  11. package/System.Buffers/bindings.json +12 -3
  12. package/System.Buffers/internal/index.d.ts +12 -14
  13. package/System.Buffers.Binary/internal/index.d.ts +2 -4
  14. package/System.Buffers.Text/internal/index.d.ts +2 -4
  15. package/System.CodeDom.Compiler/internal/index.d.ts +32 -31
  16. package/System.Collections/internal/index.d.ts +129 -131
  17. package/System.Collections.Concurrent/bindings.json +218 -218
  18. package/System.Collections.Concurrent/internal/index.d.ts +34 -36
  19. package/System.Collections.Frozen/bindings.json +413 -611
  20. package/System.Collections.Frozen/internal/index.d.ts +81 -97
  21. package/System.Collections.Frozen.d.ts +14 -2
  22. package/System.Collections.Generic/bindings.json +9420 -14155
  23. package/System.Collections.Generic/internal/index.d.ts +547 -758
  24. package/System.Collections.Generic.d.ts +1 -1
  25. package/System.Collections.Immutable/bindings.json +6000 -9080
  26. package/System.Collections.Immutable/internal/index.d.ts +265 -354
  27. package/System.Collections.Immutable.d.ts +49 -12
  28. package/System.Collections.ObjectModel/bindings.json +132 -654
  29. package/System.Collections.ObjectModel/internal/index.d.ts +10 -30
  30. package/System.Collections.Specialized/bindings.json +0 -123
  31. package/System.Collections.Specialized/internal/index.d.ts +88 -101
  32. package/System.ComponentModel/bindings.json +163 -102
  33. package/System.ComponentModel/internal/index.d.ts +618 -608
  34. package/System.ComponentModel.DataAnnotations/internal/index.d.ts +133 -132
  35. package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +8 -7
  36. package/System.ComponentModel.Design/bindings.json +22 -292
  37. package/System.ComponentModel.Design/internal/index.d.ts +101 -109
  38. package/System.ComponentModel.Design.Serialization/internal/index.d.ts +61 -60
  39. package/System.ComponentModel.d.ts +1 -0
  40. package/System.Configuration.Assemblies/internal/index.d.ts +3 -2
  41. package/System.Data/bindings.json +4 -1
  42. package/System.Data/internal/index.d.ts +351 -350
  43. package/System.Data.Common/internal/index.d.ts +151 -152
  44. package/System.Data.SqlTypes/internal/index.d.ts +68 -67
  45. package/System.Diagnostics/bindings.json +7044 -7249
  46. package/System.Diagnostics/internal/index.d.ts +446 -461
  47. package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +44 -43
  48. package/System.Diagnostics.Contracts/internal/index.d.ts +16 -18
  49. package/System.Diagnostics.Metrics/internal/index.d.ts +92 -94
  50. package/System.Diagnostics.Metrics.d.ts +1 -1
  51. package/System.Diagnostics.SymbolStore/internal/index.d.ts +12 -11
  52. package/System.Diagnostics.Tracing/bindings.json +81 -21
  53. package/System.Diagnostics.Tracing/internal/index.d.ts +69 -56
  54. package/System.Diagnostics.Tracing.d.ts +2 -1
  55. package/System.Drawing/internal/index.d.ts +76 -75
  56. package/System.Dynamic/internal/index.d.ts +55 -57
  57. package/System.Formats.Asn1/bindings.json +48 -69
  58. package/System.Formats.Asn1/internal/index.d.ts +21 -28
  59. package/System.Formats.Tar/internal/index.d.ts +8 -7
  60. package/System.Globalization/internal/index.d.ts +40 -42
  61. package/System.IO/internal/index.d.ts +187 -189
  62. package/System.IO.Compression/internal/index.d.ts +29 -31
  63. package/System.IO.Enumeration/bindings.json +250 -250
  64. package/System.IO.Enumeration/internal/index.d.ts +15 -17
  65. package/System.IO.IsolatedStorage/internal/index.d.ts +19 -18
  66. package/System.IO.MemoryMappedFiles/internal/index.d.ts +11 -10
  67. package/System.IO.Pipelines/internal/index.d.ts +15 -17
  68. package/System.IO.Pipes/internal/index.d.ts +8 -7
  69. package/System.Linq/internal/index.d.ts +223 -225
  70. package/System.Linq.Expressions/internal/index.d.ts +205 -207
  71. package/System.Linq.Expressions.Interpreter/internal/index.d.ts +5 -4
  72. package/System.Net/bindings.json +104 -104
  73. package/System.Net/internal/index.d.ts +279 -281
  74. package/System.Net.Cache/internal/index.d.ts +3 -2
  75. package/System.Net.Http/internal/index.d.ts +128 -130
  76. package/System.Net.Http.Headers/bindings.json +0 -204
  77. package/System.Net.Http.Headers/internal/index.d.ts +111 -127
  78. package/System.Net.Http.Json/internal/index.d.ts +67 -69
  79. package/System.Net.Http.Metrics/internal/index.d.ts +6 -5
  80. package/System.Net.Mail/internal/index.d.ts +76 -78
  81. package/System.Net.Mime/internal/index.d.ts +11 -10
  82. package/System.Net.NetworkInformation/internal/index.d.ts +30 -32
  83. package/System.Net.Quic/internal/index.d.ts +10 -9
  84. package/System.Net.Security/internal/index.d.ts +87 -89
  85. package/System.Net.ServerSentEvents/internal/index.d.ts +6 -5
  86. package/System.Net.Sockets/internal/index.d.ts +91 -93
  87. package/System.Net.WebSockets/internal/index.d.ts +47 -46
  88. package/System.Numerics/bindings.json +544 -116
  89. package/System.Numerics/internal/index.d.ts +110 -112
  90. package/System.Reflection/internal/index.d.ts +270 -272
  91. package/System.Reflection.Emit/internal/index.d.ts +114 -116
  92. package/System.Reflection.Metadata/bindings.json +166 -3169
  93. package/System.Reflection.Metadata/internal/index.d.ts +154 -361
  94. package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +13 -15
  95. package/System.Reflection.PortableExecutable/bindings.json +58 -0
  96. package/System.Reflection.PortableExecutable/internal/index.d.ts +24 -11
  97. package/System.Reflection.PortableExecutable.d.ts +1 -0
  98. package/System.Resources/internal/index.d.ts +33 -35
  99. package/System.Runtime/internal/index.d.ts +12 -11
  100. package/System.Runtime.CompilerServices/bindings.json +519 -717
  101. package/System.Runtime.CompilerServices/internal/index.d.ts +113 -137
  102. package/System.Runtime.CompilerServices.d.ts +14 -4
  103. package/System.Runtime.ConstrainedExecution/internal/index.d.ts +3 -2
  104. package/System.Runtime.ExceptionServices/internal/index.d.ts +4 -3
  105. package/System.Runtime.InteropServices/bindings.json +101 -101
  106. package/System.Runtime.InteropServices/internal/index.d.ts +234 -236
  107. package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +34 -36
  108. package/System.Runtime.InteropServices.Java/internal/index.d.ts +4 -6
  109. package/System.Runtime.InteropServices.JavaScript/bindings.json +328 -328
  110. package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +67 -69
  111. package/System.Runtime.InteropServices.JavaScript.d.ts +8 -26
  112. package/System.Runtime.InteropServices.Marshalling/bindings.json +2619 -2619
  113. package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +308 -310
  114. package/System.Runtime.InteropServices.ObjectiveC/bindings.json +141 -141
  115. package/System.Runtime.InteropServices.ObjectiveC/internal/index.d.ts +17 -19
  116. package/System.Runtime.InteropServices.Swift/internal/index.d.ts +4 -6
  117. package/System.Runtime.InteropServices.Swift.d.ts +1 -1
  118. package/System.Runtime.Intrinsics/bindings.json +64 -16
  119. package/System.Runtime.Intrinsics/internal/index.d.ts +22 -24
  120. package/System.Runtime.Intrinsics.Arm/internal/index.d.ts +12 -13
  121. package/System.Runtime.Intrinsics.Wasm/internal/index.d.ts +2 -4
  122. package/System.Runtime.Intrinsics.X86/internal/index.d.ts +42 -41
  123. package/System.Runtime.Loader/bindings.json +48 -69
  124. package/System.Runtime.Loader/internal/index.d.ts +30 -34
  125. package/System.Runtime.Remoting/internal/index.d.ts +5 -4
  126. package/System.Runtime.Serialization/internal/index.d.ts +175 -177
  127. package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +29 -31
  128. package/System.Runtime.Serialization.Formatters/internal/index.d.ts +7 -6
  129. package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +10 -9
  130. package/System.Runtime.Serialization.Json/internal/index.d.ts +37 -36
  131. package/System.Runtime.Versioning/internal/index.d.ts +20 -19
  132. package/System.Security/internal/index.d.ts +64 -66
  133. package/System.Security.AccessControl/bindings.json +104 -0
  134. package/System.Security.AccessControl/internal/index.d.ts +59 -58
  135. package/System.Security.AccessControl.d.ts +6 -5
  136. package/System.Security.Authentication/internal/index.d.ts +7 -6
  137. package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +12 -11
  138. package/System.Security.Claims/internal/index.d.ts +45 -44
  139. package/System.Security.Cryptography/bindings.json +469 -469
  140. package/System.Security.Cryptography/internal/index.d.ts +269 -271
  141. package/System.Security.Cryptography.X509Certificates/bindings.json +0 -62
  142. package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +98 -105
  143. package/System.Security.Permissions/internal/index.d.ts +5 -4
  144. package/System.Security.Policy/internal/index.d.ts +11 -10
  145. package/System.Security.Principal/internal/index.d.ts +28 -27
  146. package/System.Text/bindings.json +1562 -1562
  147. package/System.Text/internal/index.d.ts +119 -121
  148. package/System.Text.Encodings.Web/internal/index.d.ts +2 -4
  149. package/System.Text.Json/bindings.json +0 -290
  150. package/System.Text.Json/internal/index.d.ts +135 -153
  151. package/System.Text.Json.Nodes/internal/index.d.ts +60 -62
  152. package/System.Text.Json.Schema/internal/index.d.ts +9 -8
  153. package/System.Text.Json.Serialization/internal/index.d.ts +32 -34
  154. package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +86 -85
  155. package/System.Text.Json.Serialization.d.ts +1 -1
  156. package/System.Text.RegularExpressions/bindings.json +198 -402
  157. package/System.Text.RegularExpressions/internal/index.d.ts +48 -64
  158. package/System.Text.Unicode/bindings.json +508 -508
  159. package/System.Text.Unicode/internal/index.d.ts +29 -31
  160. package/System.Threading/bindings.json +42 -42
  161. package/System.Threading/internal/index.d.ts +157 -159
  162. package/System.Threading.Channels/internal/index.d.ts +10 -12
  163. package/System.Threading.Tasks/bindings.json +4 -1
  164. package/System.Threading.Tasks/internal/index.d.ts +115 -114
  165. package/System.Threading.Tasks.Dataflow/internal/index.d.ts +32 -33
  166. package/System.Threading.Tasks.Sources/internal/index.d.ts +6 -5
  167. package/System.Timers/internal/index.d.ts +8 -7
  168. package/System.Transactions/internal/index.d.ts +31 -30
  169. package/System.Web/internal/index.d.ts +32 -31
  170. package/System.Windows.Input/internal/index.d.ts +5 -4
  171. package/System.Windows.Markup/internal/index.d.ts +3 -2
  172. package/System.Xml/internal/index.d.ts +383 -385
  173. package/System.Xml.Linq/internal/index.d.ts +103 -102
  174. package/System.Xml.Resolvers/internal/index.d.ts +10 -9
  175. package/System.Xml.Schema/bindings.json +76 -76
  176. package/System.Xml.Schema/internal/index.d.ts +233 -232
  177. package/System.Xml.Serialization/bindings.json +193 -0
  178. package/System.Xml.Serialization/internal/index.d.ts +277 -245
  179. package/System.Xml.Serialization.d.ts +2 -0
  180. package/System.Xml.XPath/internal/index.d.ts +46 -45
  181. package/System.Xml.Xsl/internal/index.d.ts +53 -52
  182. package/System.Xml.Xsl.Runtime/bindings.json +4 -1
  183. package/System.Xml.Xsl.Runtime/internal/index.d.ts +35 -37
  184. package/System.d.ts +2 -2
  185. package/__internal/extensions/index.d.ts +517 -515
  186. package/families.json +63 -7
  187. package/package.json +2 -2
@@ -2,8 +2,9 @@
2
2
  // Namespace: System.Diagnostics.CodeAnalysis
3
3
  // Assembly: System.Private.CoreLib
4
4
 
5
- // Primitive type aliases from @tsonic/core
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
5
+ // Core type aliases from @tsonic/core
6
+ import type { JsValue, fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
7
+
7
8
 
8
9
  // Import types from other namespaces
9
10
  import * as System_Internal from "../../System/internal/index.js";
@@ -59,10 +60,10 @@ export type AllowNullAttribute = AllowNullAttribute$instance;
59
60
  export interface ConstantExpectedAttribute$instance extends Attribute {
60
61
  readonly __tsonic_type_System_Diagnostics_CodeAnalysis_ConstantExpectedAttribute: never;
61
62
 
62
- get Max(): unknown | undefined;
63
- set Max(value: unknown | undefined);
64
- get Min(): unknown | undefined;
65
- set Min(value: unknown | undefined);
63
+ get Max(): JsValue | null;
64
+ set Max(value: JsValue | null);
65
+ get Min(): JsValue | null;
66
+ set Min(value: JsValue | null);
66
67
  }
67
68
 
68
69
 
@@ -130,13 +131,13 @@ export type DynamicallyAccessedMembersAttribute = DynamicallyAccessedMembersAttr
130
131
  export interface DynamicDependencyAttribute$instance extends Attribute {
131
132
  readonly __tsonic_type_System_Diagnostics_CodeAnalysis_DynamicDependencyAttribute: never;
132
133
 
133
- readonly AssemblyName: string | undefined;
134
- get Condition(): string | undefined;
135
- set Condition(value: string | undefined);
136
- readonly MemberSignature: string | undefined;
134
+ readonly AssemblyName: string | null;
135
+ get Condition(): string | null;
136
+ set Condition(value: string | null);
137
+ readonly MemberSignature: string | null;
137
138
  readonly MemberTypes: DynamicallyAccessedMemberTypes;
138
- readonly Type: Type | undefined;
139
- readonly TypeName: string | undefined;
139
+ readonly Type: Type | null;
140
+ readonly TypeName: string | null;
140
141
  }
141
142
 
142
143
 
@@ -154,8 +155,8 @@ export type DynamicDependencyAttribute = DynamicDependencyAttribute$instance;
154
155
  export interface ExcludeFromCodeCoverageAttribute$instance extends Attribute {
155
156
  readonly __tsonic_type_System_Diagnostics_CodeAnalysis_ExcludeFromCodeCoverageAttribute: never;
156
157
 
157
- get Justification(): string | undefined;
158
- set Justification(value: string | undefined);
158
+ get Justification(): string | null;
159
+ set Justification(value: string | null);
159
160
  }
160
161
 
161
162
 
@@ -170,10 +171,10 @@ export interface ExperimentalAttribute$instance extends Attribute {
170
171
  readonly __tsonic_type_System_Diagnostics_CodeAnalysis_ExperimentalAttribute: never;
171
172
 
172
173
  readonly DiagnosticId: string;
173
- get Message(): string | undefined;
174
- set Message(value: string | undefined);
175
- get UrlFormat(): string | undefined;
176
- set UrlFormat(value: string | undefined);
174
+ get Message(): string | null;
175
+ set Message(value: string | null);
176
+ get UrlFormat(): string | null;
177
+ set UrlFormat(value: string | null);
177
178
  }
178
179
 
179
180
 
@@ -314,9 +315,9 @@ export type NotNullWhenAttribute = NotNullWhenAttribute$instance;
314
315
  export interface RequiresAssemblyFilesAttribute$instance extends Attribute {
315
316
  readonly __tsonic_type_System_Diagnostics_CodeAnalysis_RequiresAssemblyFilesAttribute: never;
316
317
 
317
- readonly Message: string | undefined;
318
- get Url(): string | undefined;
319
- set Url(value: string | undefined);
318
+ readonly Message: string | null;
319
+ get Url(): string | null;
320
+ set Url(value: string | null);
320
321
  }
321
322
 
322
323
 
@@ -333,8 +334,8 @@ export interface RequiresDynamicCodeAttribute$instance extends Attribute {
333
334
 
334
335
  ExcludeStatics: boolean;
335
336
  readonly Message: string;
336
- get Url(): string | undefined;
337
- set Url(value: string | undefined);
337
+ get Url(): string | null;
338
+ set Url(value: string | null);
338
339
  }
339
340
 
340
341
 
@@ -350,8 +351,8 @@ export interface RequiresUnreferencedCodeAttribute$instance extends Attribute {
350
351
 
351
352
  ExcludeStatics: boolean;
352
353
  readonly Message: string;
353
- get Url(): string | undefined;
354
- set Url(value: string | undefined);
354
+ get Url(): string | null;
355
+ set Url(value: string | null);
355
356
  }
356
357
 
357
358
 
@@ -378,14 +379,14 @@ export type SetsRequiredMembersAttribute = SetsRequiredMembersAttribute$instance
378
379
  export interface StringSyntaxAttribute$instance extends Attribute {
379
380
  readonly __tsonic_type_System_Diagnostics_CodeAnalysis_StringSyntaxAttribute: never;
380
381
 
381
- readonly Arguments: (unknown | undefined)[];
382
+ readonly Arguments: (JsValue | null)[];
382
383
  readonly Syntax: string;
383
384
  }
384
385
 
385
386
 
386
387
  export const StringSyntaxAttribute: {
387
388
  new(syntax: string): StringSyntaxAttribute;
388
- new(syntax: string, arguments: unknown[]): StringSyntaxAttribute;
389
+ new(syntax: string, arguments: (JsValue | null)[]): StringSyntaxAttribute;
389
390
  readonly CompositeFormat: string;
390
391
  readonly DateOnlyFormat: string;
391
392
  readonly DateTimeFormat: string;
@@ -408,14 +409,14 @@ export interface SuppressMessageAttribute$instance extends Attribute {
408
409
 
409
410
  readonly Category: string;
410
411
  readonly CheckId: string;
411
- get Justification(): string | undefined;
412
- set Justification(value: string | undefined);
413
- get MessageId(): string | undefined;
414
- set MessageId(value: string | undefined);
415
- get Scope(): string | undefined;
416
- set Scope(value: string | undefined);
417
- get Target(): string | undefined;
418
- set Target(value: string | undefined);
412
+ get Justification(): string | null;
413
+ set Justification(value: string | null);
414
+ get MessageId(): string | null;
415
+ set MessageId(value: string | null);
416
+ get Scope(): string | null;
417
+ set Scope(value: string | null);
418
+ get Target(): string | null;
419
+ set Target(value: string | null);
419
420
  }
420
421
 
421
422
 
@@ -431,14 +432,14 @@ export interface UnconditionalSuppressMessageAttribute$instance extends Attribut
431
432
 
432
433
  readonly Category: string;
433
434
  readonly CheckId: string;
434
- get Justification(): string | undefined;
435
- set Justification(value: string | undefined);
436
- get MessageId(): string | undefined;
437
- set MessageId(value: string | undefined);
438
- get Scope(): string | undefined;
439
- set Scope(value: string | undefined);
440
- get Target(): string | undefined;
441
- set Target(value: string | undefined);
435
+ get Justification(): string | null;
436
+ set Justification(value: string | null);
437
+ get MessageId(): string | null;
438
+ set MessageId(value: string | null);
439
+ get Scope(): string | null;
440
+ set Scope(value: string | null);
441
+ get Target(): string | null;
442
+ set Target(value: string | null);
442
443
  }
443
444
 
444
445
 
@@ -2,11 +2,9 @@
2
2
  // Namespace: System.Diagnostics.Contracts
3
3
  // Assembly: System.Private.CoreLib
4
4
 
5
- // Primitive type aliases from @tsonic/core
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
5
+ // Core type aliases from @tsonic/core
6
+ import type { JsValue, fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
7
7
 
8
- // Import support types from @tsonic/core
9
- import type { ptr } from "@tsonic/core/types.js";
10
8
 
11
9
  // Import types from other namespaces
12
10
  import type { IEnumerable_1 } from "../../System.Collections.Generic/internal/index.js";
@@ -86,16 +84,16 @@ export interface ContractException$instance extends Exception {
86
84
 
87
85
  readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never;
88
86
 
89
- readonly Condition: string | undefined;
87
+ readonly Condition: string | null;
90
88
  readonly Failure: string;
91
89
  readonly Kind: ContractFailureKind;
92
- readonly UserMessage: string | undefined;
90
+ readonly UserMessage: string | null;
93
91
  GetObjectData(info: SerializationInfo, context: StreamingContext): void;
94
92
  }
95
93
 
96
94
 
97
95
  export const ContractException: {
98
- new(kind: ContractFailureKind, failure: string, userMessage: string, condition: string, innerException: Exception): ContractException;
96
+ new(kind: ContractFailureKind, failure: string | null, userMessage: string | null, condition: string | null, innerException: Exception | null): ContractException;
99
97
  };
100
98
 
101
99
 
@@ -109,11 +107,11 @@ export type ContractException = ContractException$instance & __ContractException
109
107
  export interface ContractFailedEventArgs$instance extends EventArgs {
110
108
  readonly __tsonic_type_System_Diagnostics_Contracts_ContractFailedEventArgs: never;
111
109
 
112
- readonly Condition: string | undefined;
110
+ readonly Condition: string | null;
113
111
  readonly FailureKind: ContractFailureKind;
114
112
  readonly Handled: boolean;
115
- readonly Message: string | undefined;
116
- readonly OriginalException: Exception | undefined;
113
+ readonly Message: string | null;
114
+ readonly OriginalException: Exception | null;
117
115
  readonly Unwind: boolean;
118
116
  SetHandled(): void;
119
117
  SetUnwind(): void;
@@ -121,7 +119,7 @@ export interface ContractFailedEventArgs$instance extends EventArgs {
121
119
 
122
120
 
123
121
  export const ContractFailedEventArgs: {
124
- new(failureKind: ContractFailureKind, message: string, condition: string, originalException: Exception): ContractFailedEventArgs;
122
+ new(failureKind: ContractFailureKind, message: string | null, condition: string | null, originalException: Exception | null): ContractFailedEventArgs;
125
123
  };
126
124
 
127
125
 
@@ -146,7 +144,7 @@ export interface ContractOptionAttribute$instance extends Attribute {
146
144
  readonly Category: string;
147
145
  readonly Enabled: boolean;
148
146
  readonly Setting: string;
149
- readonly Value: string | undefined;
147
+ readonly Value: string | null;
150
148
  }
151
149
 
152
150
 
@@ -226,23 +224,23 @@ export const PureAttribute: {
226
224
  export type PureAttribute = PureAttribute$instance;
227
225
 
228
226
  export abstract class Contract$instance {
229
- static Assert(condition: boolean, userMessage: string): void;
227
+ static Assert(condition: boolean, userMessage: string | null): void;
230
228
  static Assert(condition: boolean): void;
231
- static Assume(condition: boolean, userMessage: string): void;
229
+ static Assume(condition: boolean, userMessage: string | null): void;
232
230
  static Assume(condition: boolean): void;
233
231
  static EndContractBlock(): void;
234
- static Ensures(condition: boolean, userMessage: string): void;
232
+ static Ensures(condition: boolean, userMessage: string | null): void;
235
233
  static Ensures(condition: boolean): void;
236
- static EnsuresOnThrow<TException extends Exception>(condition: boolean, userMessage: string): void;
234
+ static EnsuresOnThrow<TException extends Exception>(condition: boolean, userMessage: string | null): void;
237
235
  static EnsuresOnThrow<TException extends Exception>(condition: boolean): void;
238
236
  static Exists<T>(collection: IEnumerable_1<T>, predicate: Predicate_1<T>): boolean;
239
237
  static Exists(fromInclusive: int, toExclusive: int, predicate: Predicate_1<System_Internal.Int32>): boolean;
240
238
  static ForAll<T>(collection: IEnumerable_1<T>, predicate: Predicate_1<T>): boolean;
241
239
  static ForAll(fromInclusive: int, toExclusive: int, predicate: Predicate_1<System_Internal.Int32>): boolean;
242
- static Invariant(condition: boolean, userMessage: string): void;
240
+ static Invariant(condition: boolean, userMessage: string | null): void;
243
241
  static Invariant(condition: boolean): void;
244
242
  static OldValue<T>(value: T): T;
245
- static Requires(condition: boolean, userMessage: string): void;
243
+ static Requires(condition: boolean, userMessage: string | null): void;
246
244
  static Requires(condition: boolean): void;
247
245
  static Result<T>(): T;
248
246
  static ValueAtReturn<T>(value: T): T;
@@ -2,11 +2,9 @@
2
2
  // Namespace: System.Diagnostics.Metrics
3
3
  // Assembly: System.Diagnostics.DiagnosticSource
4
4
 
5
- // Primitive type aliases from @tsonic/core
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
5
+ // Core type aliases from @tsonic/core
6
+ import type { JsValue, fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
7
7
 
8
- // Import support types from @tsonic/core
9
- import type { ptr } from "@tsonic/core/types.js";
10
8
 
11
9
  // Import types from other namespaces
12
10
  import type { IEnumerable_1, IReadOnlyList_1, KeyValuePair_2 } from "../../System.Collections.Generic/internal/index.js";
@@ -17,7 +15,7 @@ import type { ISerializable, SerializationInfo, StreamingContext } from "../../S
17
15
  import * as System_Internal from "../../System/internal/index.js";
18
16
  import type { Action_2, AsyncCallback, Boolean as ClrBoolean, Delegate, Func_1, IAsyncResult, ICloneable, IDisposable, Int32, IntPtr, MulticastDelegate, Object as ClrObject, ReadOnlySpan_1, String as ClrString, Type, ValueType, Void } from "../../System/internal/index.js";
19
17
 
20
- export type MeasurementCallback_1<T extends unknown> = (instrument: Instrument, measurement: T, tags: ReadOnlySpan_1<KeyValuePair_2<System_Internal.String, unknown>>, state: unknown) => void;
18
+ export type MeasurementCallback_1<T extends NonNullable<JsValue>> = (instrument: Instrument, measurement: T, tags: ReadOnlySpan_1<KeyValuePair_2<System_Internal.String, JsValue>>, state: JsValue | null) => void;
21
19
 
22
20
 
23
21
  export interface IMeterFactory$instance extends IDisposable {
@@ -32,34 +30,34 @@ export interface IMeterFactory$instance extends System_Internal.IDisposable$inst
32
30
 
33
31
  export type IMeterFactory = IMeterFactory$instance;
34
32
 
35
- export interface Measurement_1$instance<T extends unknown> {
33
+ export interface Measurement_1$instance<T extends NonNullable<JsValue>> {
36
34
  readonly __tsonic_type_System_Diagnostics_Metrics_Measurement_1: never;
37
35
 
38
- readonly Tags: ReadOnlySpan_1<KeyValuePair_2<System_Internal.String, unknown>>;
36
+ readonly Tags: ReadOnlySpan_1<KeyValuePair_2<System_Internal.String, JsValue>>;
39
37
  readonly Value: T;
40
38
  }
41
39
 
42
40
 
43
41
  export const Measurement_1: {
44
- new<T extends unknown>(value: T): Measurement_1<T>;
45
- new<T extends unknown>(value: T, tags: IEnumerable_1<KeyValuePair_2<System_Internal.String, unknown>>): Measurement_1<T>;
46
- new<T extends unknown>(value: T, tags: KeyValuePair_2<System_Internal.String, unknown>[]): Measurement_1<T>;
47
- new<T extends unknown>(value: T, tags: ReadOnlySpan_1<KeyValuePair_2<System_Internal.String, unknown>>): Measurement_1<T>;
48
- new<T extends unknown>(value: T, tags: TagList): Measurement_1<T>;
42
+ new<T extends NonNullable<JsValue>>(value: T): Measurement_1<T>;
43
+ new<T extends NonNullable<JsValue>>(value: T, tags: IEnumerable_1<KeyValuePair_2<System_Internal.String, JsValue>> | null): Measurement_1<T>;
44
+ new<T extends NonNullable<JsValue>>(value: T, tags: KeyValuePair_2<System_Internal.String, JsValue>[] | null): Measurement_1<T>;
45
+ new<T extends NonNullable<JsValue>>(value: T, tags: ReadOnlySpan_1<KeyValuePair_2<System_Internal.String, JsValue>>): Measurement_1<T>;
46
+ new<T extends NonNullable<JsValue>>(value: T, tags: TagList): Measurement_1<T>;
49
47
  };
50
48
 
51
49
 
52
50
  export type Measurement_1<T> = Measurement_1$instance<T>;
53
51
 
54
- export interface Counter_1$instance<T extends unknown> extends Instrument_1<T> {
52
+ export interface Counter_1$instance<T extends NonNullable<JsValue>> extends Instrument_1<T> {
55
53
  readonly __tsonic_type_System_Diagnostics_Metrics_Counter_1: never;
56
54
 
57
55
  Add(delta: T): void;
58
- Add(delta: T, tag: KeyValuePair_2<System_Internal.String, unknown>): void;
59
- Add(delta: T, tag1: KeyValuePair_2<System_Internal.String, unknown>, tag2: KeyValuePair_2<System_Internal.String, unknown>): void;
60
- Add(delta: T, tag1: KeyValuePair_2<System_Internal.String, unknown>, tag2: KeyValuePair_2<System_Internal.String, unknown>, tag3: KeyValuePair_2<System_Internal.String, unknown>): void;
61
- Add(delta: T, tags: ReadOnlySpan_1<KeyValuePair_2<System_Internal.String, unknown>>): void;
62
- Add(delta: T, ...tags: KeyValuePair_2<System_Internal.String, unknown>[]): void;
56
+ Add(delta: T, tag: KeyValuePair_2<System_Internal.String, JsValue>): void;
57
+ Add(delta: T, tag1: KeyValuePair_2<System_Internal.String, JsValue>, tag2: KeyValuePair_2<System_Internal.String, JsValue>): void;
58
+ Add(delta: T, tag1: KeyValuePair_2<System_Internal.String, JsValue>, tag2: KeyValuePair_2<System_Internal.String, JsValue>, tag3: KeyValuePair_2<System_Internal.String, JsValue>): void;
59
+ Add(delta: T, tags: ReadOnlySpan_1<KeyValuePair_2<System_Internal.String, JsValue>>): void;
60
+ Add(delta: T, ...tags: KeyValuePair_2<System_Internal.String, JsValue>[]): void;
63
61
  Add(delta: T, tagList: TagList): void;
64
62
  }
65
63
 
@@ -70,15 +68,15 @@ export const Counter_1: {
70
68
 
71
69
  export type Counter_1<T> = Counter_1$instance<T>;
72
70
 
73
- export interface Gauge_1$instance<T extends unknown> extends Instrument_1<T> {
71
+ export interface Gauge_1$instance<T extends NonNullable<JsValue>> extends Instrument_1<T> {
74
72
  readonly __tsonic_type_System_Diagnostics_Metrics_Gauge_1: never;
75
73
 
76
74
  Record(value: T): void;
77
- Record(value: T, tag: KeyValuePair_2<System_Internal.String, unknown>): void;
78
- Record(value: T, tag1: KeyValuePair_2<System_Internal.String, unknown>, tag2: KeyValuePair_2<System_Internal.String, unknown>): void;
79
- Record(value: T, tag1: KeyValuePair_2<System_Internal.String, unknown>, tag2: KeyValuePair_2<System_Internal.String, unknown>, tag3: KeyValuePair_2<System_Internal.String, unknown>): void;
80
- Record(value: T, tags: ReadOnlySpan_1<KeyValuePair_2<System_Internal.String, unknown>>): void;
81
- Record(value: T, ...tags: KeyValuePair_2<System_Internal.String, unknown>[]): void;
75
+ Record(value: T, tag: KeyValuePair_2<System_Internal.String, JsValue>): void;
76
+ Record(value: T, tag1: KeyValuePair_2<System_Internal.String, JsValue>, tag2: KeyValuePair_2<System_Internal.String, JsValue>): void;
77
+ Record(value: T, tag1: KeyValuePair_2<System_Internal.String, JsValue>, tag2: KeyValuePair_2<System_Internal.String, JsValue>, tag3: KeyValuePair_2<System_Internal.String, JsValue>): void;
78
+ Record(value: T, tags: ReadOnlySpan_1<KeyValuePair_2<System_Internal.String, JsValue>>): void;
79
+ Record(value: T, ...tags: KeyValuePair_2<System_Internal.String, JsValue>[]): void;
82
80
  Record(value: T, tagList: TagList): void;
83
81
  }
84
82
 
@@ -89,15 +87,15 @@ export const Gauge_1: {
89
87
 
90
88
  export type Gauge_1<T> = Gauge_1$instance<T>;
91
89
 
92
- export interface Histogram_1$instance<T extends unknown> extends Instrument_1<T> {
90
+ export interface Histogram_1$instance<T extends NonNullable<JsValue>> extends Instrument_1<T> {
93
91
  readonly __tsonic_type_System_Diagnostics_Metrics_Histogram_1: never;
94
92
 
95
93
  Record(value: T): void;
96
- Record(value: T, tag: KeyValuePair_2<System_Internal.String, unknown>): void;
97
- Record(value: T, tag1: KeyValuePair_2<System_Internal.String, unknown>, tag2: KeyValuePair_2<System_Internal.String, unknown>): void;
98
- Record(value: T, tag1: KeyValuePair_2<System_Internal.String, unknown>, tag2: KeyValuePair_2<System_Internal.String, unknown>, tag3: KeyValuePair_2<System_Internal.String, unknown>): void;
99
- Record(value: T, tags: ReadOnlySpan_1<KeyValuePair_2<System_Internal.String, unknown>>): void;
100
- Record(value: T, ...tags: KeyValuePair_2<System_Internal.String, unknown>[]): void;
94
+ Record(value: T, tag: KeyValuePair_2<System_Internal.String, JsValue>): void;
95
+ Record(value: T, tag1: KeyValuePair_2<System_Internal.String, JsValue>, tag2: KeyValuePair_2<System_Internal.String, JsValue>): void;
96
+ Record(value: T, tag1: KeyValuePair_2<System_Internal.String, JsValue>, tag2: KeyValuePair_2<System_Internal.String, JsValue>, tag3: KeyValuePair_2<System_Internal.String, JsValue>): void;
97
+ Record(value: T, tags: ReadOnlySpan_1<KeyValuePair_2<System_Internal.String, JsValue>>): void;
98
+ Record(value: T, ...tags: KeyValuePair_2<System_Internal.String, JsValue>[]): void;
101
99
  Record(value: T, tagList: TagList): void;
102
100
  }
103
101
 
@@ -111,45 +109,45 @@ export type Histogram_1<T> = Histogram_1$instance<T>;
111
109
  export interface Instrument$instance {
112
110
  readonly __tsonic_type_System_Diagnostics_Metrics_Instrument: never;
113
111
 
114
- readonly Description: string | undefined;
112
+ readonly Description: string | null;
115
113
  readonly Enabled: boolean;
116
114
  readonly IsObservable: boolean;
117
115
  readonly Meter: Meter;
118
116
  readonly Name: string;
119
- readonly Tags: IEnumerable_1<KeyValuePair_2<System_Internal.String, unknown>> | undefined;
120
- readonly Unit: string | undefined;
117
+ readonly Tags: IEnumerable_1<KeyValuePair_2<System_Internal.String, JsValue>> | null;
118
+ readonly Unit: string | null;
121
119
  }
122
120
 
123
121
 
124
- export const Instrument: (abstract new(meter: Meter, name: string) => Instrument) & (abstract new(meter: Meter, name: string, unit: string, description: string) => Instrument) & (abstract new(meter: Meter, name: string, unit: string, description: string, tags: IEnumerable_1<KeyValuePair_2<System_Internal.String, unknown>>) => Instrument) & {
122
+ export const Instrument: (abstract new(meter: Meter, name: string) => Instrument) & (abstract new(meter: Meter, name: string, unit: string | null, description: string | null) => Instrument) & (abstract new(meter: Meter, name: string, unit: string | null, description: string | null, tags: IEnumerable_1<KeyValuePair_2<System_Internal.String, JsValue>> | null) => Instrument) & {
125
123
  };
126
124
 
127
125
 
128
126
  export type Instrument = Instrument$instance;
129
127
 
130
- export interface Instrument_1$instance<T extends unknown> extends Instrument {
128
+ export interface Instrument_1$instance<T extends NonNullable<JsValue>> extends Instrument {
131
129
  readonly __tsonic_type_System_Diagnostics_Metrics_Instrument_1: never;
132
130
 
133
- readonly Advice: InstrumentAdvice_1<T> | undefined;
131
+ readonly Advice: InstrumentAdvice_1<T> | null;
134
132
  }
135
133
 
136
134
 
137
- export const Instrument_1: (abstract new<T extends unknown>(meter: Meter, name: string) => Instrument_1<T>) & (abstract new<T extends unknown>(meter: Meter, name: string, unit: string, description: string) => Instrument_1<T>) & (abstract new<T extends unknown>(meter: Meter, name: string, unit: string, description: string, tags: IEnumerable_1<KeyValuePair_2<System_Internal.String, unknown>>) => Instrument_1<T>) & (abstract new<T extends unknown>(meter: Meter, name: string, unit: string, description: string, tags: IEnumerable_1<KeyValuePair_2<System_Internal.String, unknown>>, advice: InstrumentAdvice_1<T>) => Instrument_1<T>) & {
135
+ export const Instrument_1: (abstract new<T extends NonNullable<JsValue>>(meter: Meter, name: string) => Instrument_1<T>) & (abstract new<T extends NonNullable<JsValue>>(meter: Meter, name: string, unit: string | null, description: string | null) => Instrument_1<T>) & (abstract new<T extends NonNullable<JsValue>>(meter: Meter, name: string, unit: string | null, description: string | null, tags: IEnumerable_1<KeyValuePair_2<System_Internal.String, JsValue>> | null) => Instrument_1<T>) & (abstract new<T extends NonNullable<JsValue>>(meter: Meter, name: string, unit: string | null, description: string | null, tags: IEnumerable_1<KeyValuePair_2<System_Internal.String, JsValue>> | null, advice: InstrumentAdvice_1<T> | null) => Instrument_1<T>) & {
138
136
  };
139
137
 
140
138
 
141
139
  export type Instrument_1<T> = Instrument_1$instance<T>;
142
140
 
143
- export interface InstrumentAdvice_1$instance<T extends unknown> {
141
+ export interface InstrumentAdvice_1$instance<T extends NonNullable<JsValue>> {
144
142
  readonly __tsonic_type_System_Diagnostics_Metrics_InstrumentAdvice_1: never;
145
143
 
146
- get HistogramBucketBoundaries(): IReadOnlyList_1<T> | undefined;
147
- set HistogramBucketBoundaries(value: IReadOnlyList_1<T> | undefined);
144
+ get HistogramBucketBoundaries(): IReadOnlyList_1<T> | null;
145
+ set HistogramBucketBoundaries(value: IReadOnlyList_1<T> | null);
148
146
  }
149
147
 
150
148
 
151
149
  export const InstrumentAdvice_1: {
152
- new<T extends unknown>(): InstrumentAdvice_1<T>;
150
+ new<T extends NonNullable<JsValue>>(): InstrumentAdvice_1<T>;
153
151
  };
154
152
 
155
153
 
@@ -161,30 +159,30 @@ export interface Meter$instance {
161
159
  readonly __tsonic_iface_System_IDisposable: never;
162
160
 
163
161
  Name: string;
164
- get Scope(): unknown | undefined;
165
- set Scope(value: unknown | undefined);
166
- get Tags(): IEnumerable_1<KeyValuePair_2<System_Internal.String, unknown>> | undefined;
167
- set Tags(value: IEnumerable_1<KeyValuePair_2<System_Internal.String, unknown>> | undefined);
168
- get TelemetrySchemaUrl(): string | undefined;
169
- set TelemetrySchemaUrl(value: string | undefined);
170
- get Version(): string | undefined;
171
- set Version(value: string | undefined);
172
- CreateCounter<T extends unknown>(name: string, unit?: string, description?: string): Counter_1<T>;
173
- CreateCounter<T extends unknown>(name: string, unit: string, description: string, tags: IEnumerable_1<KeyValuePair_2<System_Internal.String, unknown>>): Counter_1<T>;
174
- CreateGauge<T extends unknown>(name: string): Gauge_1<T>;
175
- CreateGauge<T extends unknown>(name: string, unit?: string, description?: string, tags?: IEnumerable_1<KeyValuePair_2<System_Internal.String, unknown>>): Gauge_1<T>;
176
- CreateHistogram<T extends unknown>(name: string): Histogram_1<T>;
177
- CreateHistogram<T extends unknown>(name: string, unit: string, description: string): Histogram_1<T>;
178
- CreateHistogram<T extends unknown>(name: string, unit: string, description: string, tags: IEnumerable_1<KeyValuePair_2<System_Internal.String, unknown>>): Histogram_1<T>;
179
- CreateHistogram<T extends unknown>(name: string, unit?: string, description?: string, tags?: IEnumerable_1<KeyValuePair_2<System_Internal.String, unknown>>, advice?: InstrumentAdvice_1<T>): Histogram_1<T>;
180
- CreateObservableCounter<T extends unknown>(name: string, observeValue: Func_1<T>, unit?: string, description?: string): ObservableCounter_1<T>;
181
- CreateObservableCounter<T extends unknown>(name: string, observeValue: Func_1<T>, unit: string, description: string, tags: IEnumerable_1<KeyValuePair_2<System_Internal.String, unknown>>): ObservableCounter_1<T>;
182
- CreateObservableGauge<T extends unknown>(name: string, observeValue: Func_1<T>, unit?: string, description?: string): ObservableGauge_1<T>;
183
- CreateObservableGauge<T extends unknown>(name: string, observeValue: Func_1<T>, unit: string, description: string, tags: IEnumerable_1<KeyValuePair_2<System_Internal.String, unknown>>): ObservableGauge_1<T>;
184
- CreateObservableUpDownCounter<T extends unknown>(name: string, observeValue: Func_1<T>, unit?: string, description?: string): ObservableUpDownCounter_1<T>;
185
- CreateObservableUpDownCounter<T extends unknown>(name: string, observeValue: Func_1<T>, unit: string, description: string, tags: IEnumerable_1<KeyValuePair_2<System_Internal.String, unknown>>): ObservableUpDownCounter_1<T>;
186
- CreateUpDownCounter<T extends unknown>(name: string, unit?: string, description?: string): UpDownCounter_1<T>;
187
- CreateUpDownCounter<T extends unknown>(name: string, unit: string, description: string, tags: IEnumerable_1<KeyValuePair_2<System_Internal.String, unknown>>): UpDownCounter_1<T>;
162
+ get Scope(): JsValue | null;
163
+ set Scope(value: JsValue | null);
164
+ get Tags(): IEnumerable_1<KeyValuePair_2<System_Internal.String, JsValue>> | null;
165
+ set Tags(value: IEnumerable_1<KeyValuePair_2<System_Internal.String, JsValue>> | null);
166
+ get TelemetrySchemaUrl(): string | null;
167
+ set TelemetrySchemaUrl(value: string | null);
168
+ get Version(): string | null;
169
+ set Version(value: string | null);
170
+ CreateCounter<T extends NonNullable<JsValue>>(name: string, unit?: string | null, description?: string | null): Counter_1<T>;
171
+ CreateCounter<T extends NonNullable<JsValue>>(name: string, unit: string | null, description: string | null, tags: IEnumerable_1<KeyValuePair_2<System_Internal.String, JsValue>> | null): Counter_1<T>;
172
+ CreateGauge<T extends NonNullable<JsValue>>(name: string): Gauge_1<T>;
173
+ CreateGauge<T extends NonNullable<JsValue>>(name: string, unit?: string | null, description?: string | null, tags?: IEnumerable_1<KeyValuePair_2<System_Internal.String, JsValue>> | null): Gauge_1<T>;
174
+ CreateHistogram<T extends NonNullable<JsValue>>(name: string): Histogram_1<T>;
175
+ CreateHistogram<T extends NonNullable<JsValue>>(name: string, unit: string | null, description: string | null): Histogram_1<T>;
176
+ CreateHistogram<T extends NonNullable<JsValue>>(name: string, unit: string | null, description: string | null, tags: IEnumerable_1<KeyValuePair_2<System_Internal.String, JsValue>> | null): Histogram_1<T>;
177
+ CreateHistogram<T extends NonNullable<JsValue>>(name: string, unit?: string | null, description?: string | null, tags?: IEnumerable_1<KeyValuePair_2<System_Internal.String, JsValue>> | null, advice?: InstrumentAdvice_1<T> | null): Histogram_1<T>;
178
+ CreateObservableCounter<T extends NonNullable<JsValue>>(name: string, observeValue: Func_1<T>, unit?: string | null, description?: string | null): ObservableCounter_1<T>;
179
+ CreateObservableCounter<T extends NonNullable<JsValue>>(name: string, observeValue: Func_1<T>, unit: string | null, description: string | null, tags: IEnumerable_1<KeyValuePair_2<System_Internal.String, JsValue>> | null): ObservableCounter_1<T>;
180
+ CreateObservableGauge<T extends NonNullable<JsValue>>(name: string, observeValue: Func_1<T>, unit?: string | null, description?: string | null): ObservableGauge_1<T>;
181
+ CreateObservableGauge<T extends NonNullable<JsValue>>(name: string, observeValue: Func_1<T>, unit: string | null, description: string | null, tags: IEnumerable_1<KeyValuePair_2<System_Internal.String, JsValue>> | null): ObservableGauge_1<T>;
182
+ CreateObservableUpDownCounter<T extends NonNullable<JsValue>>(name: string, observeValue: Func_1<T>, unit?: string | null, description?: string | null): ObservableUpDownCounter_1<T>;
183
+ CreateObservableUpDownCounter<T extends NonNullable<JsValue>>(name: string, observeValue: Func_1<T>, unit: string | null, description: string | null, tags: IEnumerable_1<KeyValuePair_2<System_Internal.String, JsValue>> | null): ObservableUpDownCounter_1<T>;
184
+ CreateUpDownCounter<T extends NonNullable<JsValue>>(name: string, unit?: string | null, description?: string | null): UpDownCounter_1<T>;
185
+ CreateUpDownCounter<T extends NonNullable<JsValue>>(name: string, unit: string | null, description: string | null, tags: IEnumerable_1<KeyValuePair_2<System_Internal.String, JsValue>> | null): UpDownCounter_1<T>;
188
186
  Dispose(): void;
189
187
  Dispose(disposing: boolean): void;
190
188
  }
@@ -193,8 +191,8 @@ export interface Meter$instance {
193
191
  export const Meter: {
194
192
  new(options: MeterOptions): Meter;
195
193
  new(name: string): Meter;
196
- new(name: string, version: string): Meter;
197
- new(name: string, version: string, tags: IEnumerable_1<KeyValuePair_2<System_Internal.String, unknown>>, scope: unknown): Meter;
194
+ new(name: string, version: string | null): Meter;
195
+ new(name: string, version: string | null, tags: IEnumerable_1<KeyValuePair_2<System_Internal.String, JsValue>> | null, scope: JsValue | null): Meter;
198
196
  };
199
197
 
200
198
 
@@ -210,15 +208,15 @@ export interface MeterListener$instance extends System_Internal.IDisposable$inst
210
208
 
211
209
  readonly __tsonic_iface_System_IDisposable: never;
212
210
 
213
- get InstrumentPublished(): Action_2<Instrument, MeterListener> | undefined;
214
- set InstrumentPublished(value: Action_2<Instrument, MeterListener> | undefined);
215
- get MeasurementsCompleted(): Action_2<Instrument, unknown | undefined> | undefined;
216
- set MeasurementsCompleted(value: Action_2<Instrument, unknown | undefined> | undefined);
217
- DisableMeasurementEvents(instrument: Instrument): unknown | undefined;
211
+ get InstrumentPublished(): Action_2<Instrument, MeterListener> | null;
212
+ set InstrumentPublished(value: Action_2<Instrument, MeterListener> | null);
213
+ get MeasurementsCompleted(): Action_2<Instrument, JsValue | null> | null;
214
+ set MeasurementsCompleted(value: Action_2<Instrument, JsValue | null> | null);
215
+ DisableMeasurementEvents(instrument: Instrument): JsValue | null;
218
216
  Dispose(): void;
219
- EnableMeasurementEvents(instrument: Instrument, state?: unknown): void;
217
+ EnableMeasurementEvents(instrument: Instrument, state?: JsValue | null): void;
220
218
  RecordObservableInstruments(): void;
221
- SetMeasurementEventCallback<T extends unknown>(measurementCallback: MeasurementCallback_1<T>): void;
219
+ SetMeasurementEventCallback<T extends NonNullable<JsValue>>(measurementCallback: MeasurementCallback_1<T> | null): void;
222
220
  Start(): void;
223
221
  }
224
222
 
@@ -239,14 +237,14 @@ export interface MeterOptions$instance {
239
237
  readonly __tsonic_type_System_Diagnostics_Metrics_MeterOptions: never;
240
238
 
241
239
  Name: string;
242
- get Scope(): unknown | undefined;
243
- set Scope(value: unknown | undefined);
244
- get Tags(): IEnumerable_1<KeyValuePair_2<System_Internal.String, unknown>> | undefined;
245
- set Tags(value: IEnumerable_1<KeyValuePair_2<System_Internal.String, unknown>> | undefined);
246
- get TelemetrySchemaUrl(): string | undefined;
247
- set TelemetrySchemaUrl(value: string | undefined);
248
- get Version(): string | undefined;
249
- set Version(value: string | undefined);
240
+ get Scope(): JsValue | null;
241
+ set Scope(value: JsValue | null);
242
+ get Tags(): IEnumerable_1<KeyValuePair_2<System_Internal.String, JsValue>> | null;
243
+ set Tags(value: IEnumerable_1<KeyValuePair_2<System_Internal.String, JsValue>> | null);
244
+ get TelemetrySchemaUrl(): string | null;
245
+ set TelemetrySchemaUrl(value: string | null);
246
+ get Version(): string | null;
247
+ set Version(value: string | null);
250
248
  }
251
249
 
252
250
 
@@ -257,7 +255,7 @@ export const MeterOptions: {
257
255
 
258
256
  export type MeterOptions = MeterOptions$instance;
259
257
 
260
- export interface ObservableCounter_1$instance<T extends unknown> extends ObservableInstrument_1<T> {
258
+ export interface ObservableCounter_1$instance<T extends NonNullable<JsValue>> extends ObservableInstrument_1<T> {
261
259
  readonly __tsonic_type_System_Diagnostics_Metrics_ObservableCounter_1: never;
262
260
 
263
261
  Observe(): IEnumerable_1<Measurement_1<T>>;
@@ -270,7 +268,7 @@ export const ObservableCounter_1: {
270
268
 
271
269
  export type ObservableCounter_1<T> = ObservableCounter_1$instance<T>;
272
270
 
273
- export interface ObservableGauge_1$instance<T extends unknown> extends ObservableInstrument_1<T> {
271
+ export interface ObservableGauge_1$instance<T extends NonNullable<JsValue>> extends ObservableInstrument_1<T> {
274
272
  readonly __tsonic_type_System_Diagnostics_Metrics_ObservableGauge_1: never;
275
273
 
276
274
  Observe(): IEnumerable_1<Measurement_1<T>>;
@@ -283,7 +281,7 @@ export const ObservableGauge_1: {
283
281
 
284
282
  export type ObservableGauge_1<T> = ObservableGauge_1$instance<T>;
285
283
 
286
- export interface ObservableInstrument_1$instance<T extends unknown> extends Instrument {
284
+ export interface ObservableInstrument_1$instance<T extends NonNullable<JsValue>> extends Instrument {
287
285
  readonly __tsonic_type_System_Diagnostics_Metrics_ObservableInstrument_1: never;
288
286
 
289
287
  readonly IsObservable: boolean;
@@ -291,13 +289,13 @@ export interface ObservableInstrument_1$instance<T extends unknown> extends Inst
291
289
  }
292
290
 
293
291
 
294
- export const ObservableInstrument_1: (abstract new<T extends unknown>(meter: Meter, name: string, unit: string, description: string) => ObservableInstrument_1<T>) & (abstract new<T extends unknown>(meter: Meter, name: string, unit: string, description: string, tags: IEnumerable_1<KeyValuePair_2<System_Internal.String, unknown>>) => ObservableInstrument_1<T>) & {
292
+ export const ObservableInstrument_1: (abstract new<T extends NonNullable<JsValue>>(meter: Meter, name: string, unit: string | null, description: string | null) => ObservableInstrument_1<T>) & (abstract new<T extends NonNullable<JsValue>>(meter: Meter, name: string, unit: string | null, description: string | null, tags: IEnumerable_1<KeyValuePair_2<System_Internal.String, JsValue>> | null) => ObservableInstrument_1<T>) & {
295
293
  };
296
294
 
297
295
 
298
296
  export type ObservableInstrument_1<T> = ObservableInstrument_1$instance<T>;
299
297
 
300
- export interface ObservableUpDownCounter_1$instance<T extends unknown> extends ObservableInstrument_1<T> {
298
+ export interface ObservableUpDownCounter_1$instance<T extends NonNullable<JsValue>> extends ObservableInstrument_1<T> {
301
299
  readonly __tsonic_type_System_Diagnostics_Metrics_ObservableUpDownCounter_1: never;
302
300
 
303
301
  Observe(): IEnumerable_1<Measurement_1<T>>;
@@ -310,15 +308,15 @@ export const ObservableUpDownCounter_1: {
310
308
 
311
309
  export type ObservableUpDownCounter_1<T> = ObservableUpDownCounter_1$instance<T>;
312
310
 
313
- export interface UpDownCounter_1$instance<T extends unknown> extends Instrument_1<T> {
311
+ export interface UpDownCounter_1$instance<T extends NonNullable<JsValue>> extends Instrument_1<T> {
314
312
  readonly __tsonic_type_System_Diagnostics_Metrics_UpDownCounter_1: never;
315
313
 
316
314
  Add(delta: T): void;
317
- Add(delta: T, tag: KeyValuePair_2<System_Internal.String, unknown>): void;
318
- Add(delta: T, tag1: KeyValuePair_2<System_Internal.String, unknown>, tag2: KeyValuePair_2<System_Internal.String, unknown>): void;
319
- Add(delta: T, tag1: KeyValuePair_2<System_Internal.String, unknown>, tag2: KeyValuePair_2<System_Internal.String, unknown>, tag3: KeyValuePair_2<System_Internal.String, unknown>): void;
320
- Add(delta: T, tags: ReadOnlySpan_1<KeyValuePair_2<System_Internal.String, unknown>>): void;
321
- Add(delta: T, ...tags: KeyValuePair_2<System_Internal.String, unknown>[]): void;
315
+ Add(delta: T, tag: KeyValuePair_2<System_Internal.String, JsValue>): void;
316
+ Add(delta: T, tag1: KeyValuePair_2<System_Internal.String, JsValue>, tag2: KeyValuePair_2<System_Internal.String, JsValue>): void;
317
+ Add(delta: T, tag1: KeyValuePair_2<System_Internal.String, JsValue>, tag2: KeyValuePair_2<System_Internal.String, JsValue>, tag3: KeyValuePair_2<System_Internal.String, JsValue>): void;
318
+ Add(delta: T, tags: ReadOnlySpan_1<KeyValuePair_2<System_Internal.String, JsValue>>): void;
319
+ Add(delta: T, ...tags: KeyValuePair_2<System_Internal.String, JsValue>[]): void;
322
320
  Add(delta: T, tagList: TagList): void;
323
321
  }
324
322
 
@@ -330,7 +328,7 @@ export const UpDownCounter_1: {
330
328
  export type UpDownCounter_1<T> = UpDownCounter_1$instance<T>;
331
329
 
332
330
  export abstract class MeterFactoryExtensions$instance {
333
- static Create(meterFactory: IMeterFactory, name: string, version?: string, tags?: IEnumerable_1<KeyValuePair_2<System_Internal.String, unknown>>): Meter;
331
+ static Create(meterFactory: IMeterFactory, name: string, version?: string | null, tags?: IEnumerable_1<KeyValuePair_2<System_Internal.String, JsValue>> | null): Meter;
334
332
  }
335
333
 
336
334
 
@@ -41,7 +41,7 @@ export type Instrument<
41
41
  T1 = __,
42
42
  > =
43
43
  [T1] extends [__] ? Internal.Instrument :
44
- [T1] extends [unknown] ? Internal.Instrument_1<T1> : never;
44
+ [T1] extends [NonNullable<JsValue>] ? Internal.Instrument_1<T1> : never;
45
45
 
46
46
  // Extension methods (C# using semantics)
47
47
  export type { ExtensionMethods_System_Diagnostics_Metrics as ExtensionMethods } from './__internal/extensions/index.js';