@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.
- package/Internal/internal/index.d.ts +4 -3
- package/Microsoft.CSharp.RuntimeBinder/internal/index.d.ts +19 -18
- package/Microsoft.VisualBasic/internal/index.d.ts +52 -54
- package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +117 -119
- package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +3 -2
- package/Microsoft.Win32/internal/index.d.ts +19 -18
- package/Microsoft.Win32.SafeHandles/internal/index.d.ts +3 -2
- package/README.md +76 -104
- package/System/bindings.json +1520 -2039
- package/System/internal/index.d.ts +1549 -1602
- package/System.Buffers/bindings.json +12 -3
- package/System.Buffers/internal/index.d.ts +12 -14
- package/System.Buffers.Binary/internal/index.d.ts +2 -4
- package/System.Buffers.Text/internal/index.d.ts +2 -4
- package/System.CodeDom.Compiler/internal/index.d.ts +32 -31
- package/System.Collections/internal/index.d.ts +129 -131
- package/System.Collections.Concurrent/bindings.json +218 -218
- package/System.Collections.Concurrent/internal/index.d.ts +34 -36
- package/System.Collections.Frozen/bindings.json +413 -611
- package/System.Collections.Frozen/internal/index.d.ts +81 -97
- package/System.Collections.Frozen.d.ts +14 -2
- package/System.Collections.Generic/bindings.json +9420 -14155
- package/System.Collections.Generic/internal/index.d.ts +547 -758
- package/System.Collections.Generic.d.ts +1 -1
- package/System.Collections.Immutable/bindings.json +6000 -9080
- package/System.Collections.Immutable/internal/index.d.ts +265 -354
- package/System.Collections.Immutable.d.ts +49 -12
- package/System.Collections.ObjectModel/bindings.json +132 -654
- package/System.Collections.ObjectModel/internal/index.d.ts +10 -30
- package/System.Collections.Specialized/bindings.json +0 -123
- package/System.Collections.Specialized/internal/index.d.ts +88 -101
- package/System.ComponentModel/bindings.json +163 -102
- package/System.ComponentModel/internal/index.d.ts +618 -608
- package/System.ComponentModel.DataAnnotations/internal/index.d.ts +133 -132
- package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +8 -7
- package/System.ComponentModel.Design/bindings.json +22 -292
- package/System.ComponentModel.Design/internal/index.d.ts +101 -109
- package/System.ComponentModel.Design.Serialization/internal/index.d.ts +61 -60
- package/System.ComponentModel.d.ts +1 -0
- package/System.Configuration.Assemblies/internal/index.d.ts +3 -2
- package/System.Data/bindings.json +4 -1
- package/System.Data/internal/index.d.ts +351 -350
- package/System.Data.Common/internal/index.d.ts +151 -152
- package/System.Data.SqlTypes/internal/index.d.ts +68 -67
- package/System.Diagnostics/bindings.json +7044 -7249
- package/System.Diagnostics/internal/index.d.ts +446 -461
- package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +44 -43
- package/System.Diagnostics.Contracts/internal/index.d.ts +16 -18
- package/System.Diagnostics.Metrics/internal/index.d.ts +92 -94
- package/System.Diagnostics.Metrics.d.ts +1 -1
- package/System.Diagnostics.SymbolStore/internal/index.d.ts +12 -11
- package/System.Diagnostics.Tracing/bindings.json +81 -21
- package/System.Diagnostics.Tracing/internal/index.d.ts +69 -56
- package/System.Diagnostics.Tracing.d.ts +2 -1
- package/System.Drawing/internal/index.d.ts +76 -75
- package/System.Dynamic/internal/index.d.ts +55 -57
- package/System.Formats.Asn1/bindings.json +48 -69
- package/System.Formats.Asn1/internal/index.d.ts +21 -28
- package/System.Formats.Tar/internal/index.d.ts +8 -7
- package/System.Globalization/internal/index.d.ts +40 -42
- package/System.IO/internal/index.d.ts +187 -189
- package/System.IO.Compression/internal/index.d.ts +29 -31
- package/System.IO.Enumeration/bindings.json +250 -250
- package/System.IO.Enumeration/internal/index.d.ts +15 -17
- package/System.IO.IsolatedStorage/internal/index.d.ts +19 -18
- package/System.IO.MemoryMappedFiles/internal/index.d.ts +11 -10
- package/System.IO.Pipelines/internal/index.d.ts +15 -17
- package/System.IO.Pipes/internal/index.d.ts +8 -7
- package/System.Linq/internal/index.d.ts +223 -225
- package/System.Linq.Expressions/internal/index.d.ts +205 -207
- package/System.Linq.Expressions.Interpreter/internal/index.d.ts +5 -4
- package/System.Net/bindings.json +104 -104
- package/System.Net/internal/index.d.ts +279 -281
- package/System.Net.Cache/internal/index.d.ts +3 -2
- package/System.Net.Http/internal/index.d.ts +128 -130
- package/System.Net.Http.Headers/bindings.json +0 -204
- package/System.Net.Http.Headers/internal/index.d.ts +111 -127
- package/System.Net.Http.Json/internal/index.d.ts +67 -69
- package/System.Net.Http.Metrics/internal/index.d.ts +6 -5
- package/System.Net.Mail/internal/index.d.ts +76 -78
- package/System.Net.Mime/internal/index.d.ts +11 -10
- package/System.Net.NetworkInformation/internal/index.d.ts +30 -32
- package/System.Net.Quic/internal/index.d.ts +10 -9
- package/System.Net.Security/internal/index.d.ts +87 -89
- package/System.Net.ServerSentEvents/internal/index.d.ts +6 -5
- package/System.Net.Sockets/internal/index.d.ts +91 -93
- package/System.Net.WebSockets/internal/index.d.ts +47 -46
- package/System.Numerics/bindings.json +544 -116
- package/System.Numerics/internal/index.d.ts +110 -112
- package/System.Reflection/internal/index.d.ts +270 -272
- package/System.Reflection.Emit/internal/index.d.ts +114 -116
- package/System.Reflection.Metadata/bindings.json +166 -3169
- package/System.Reflection.Metadata/internal/index.d.ts +154 -361
- package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +13 -15
- package/System.Reflection.PortableExecutable/bindings.json +58 -0
- package/System.Reflection.PortableExecutable/internal/index.d.ts +24 -11
- package/System.Reflection.PortableExecutable.d.ts +1 -0
- package/System.Resources/internal/index.d.ts +33 -35
- package/System.Runtime/internal/index.d.ts +12 -11
- package/System.Runtime.CompilerServices/bindings.json +519 -717
- package/System.Runtime.CompilerServices/internal/index.d.ts +113 -137
- package/System.Runtime.CompilerServices.d.ts +14 -4
- package/System.Runtime.ConstrainedExecution/internal/index.d.ts +3 -2
- package/System.Runtime.ExceptionServices/internal/index.d.ts +4 -3
- package/System.Runtime.InteropServices/bindings.json +101 -101
- package/System.Runtime.InteropServices/internal/index.d.ts +234 -236
- package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +34 -36
- package/System.Runtime.InteropServices.Java/internal/index.d.ts +4 -6
- package/System.Runtime.InteropServices.JavaScript/bindings.json +328 -328
- package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +67 -69
- package/System.Runtime.InteropServices.JavaScript.d.ts +8 -26
- package/System.Runtime.InteropServices.Marshalling/bindings.json +2619 -2619
- package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +308 -310
- package/System.Runtime.InteropServices.ObjectiveC/bindings.json +141 -141
- package/System.Runtime.InteropServices.ObjectiveC/internal/index.d.ts +17 -19
- package/System.Runtime.InteropServices.Swift/internal/index.d.ts +4 -6
- package/System.Runtime.InteropServices.Swift.d.ts +1 -1
- package/System.Runtime.Intrinsics/bindings.json +64 -16
- package/System.Runtime.Intrinsics/internal/index.d.ts +22 -24
- package/System.Runtime.Intrinsics.Arm/internal/index.d.ts +12 -13
- package/System.Runtime.Intrinsics.Wasm/internal/index.d.ts +2 -4
- package/System.Runtime.Intrinsics.X86/internal/index.d.ts +42 -41
- package/System.Runtime.Loader/bindings.json +48 -69
- package/System.Runtime.Loader/internal/index.d.ts +30 -34
- package/System.Runtime.Remoting/internal/index.d.ts +5 -4
- package/System.Runtime.Serialization/internal/index.d.ts +175 -177
- package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +29 -31
- package/System.Runtime.Serialization.Formatters/internal/index.d.ts +7 -6
- package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +10 -9
- package/System.Runtime.Serialization.Json/internal/index.d.ts +37 -36
- package/System.Runtime.Versioning/internal/index.d.ts +20 -19
- package/System.Security/internal/index.d.ts +64 -66
- package/System.Security.AccessControl/bindings.json +104 -0
- package/System.Security.AccessControl/internal/index.d.ts +59 -58
- package/System.Security.AccessControl.d.ts +6 -5
- package/System.Security.Authentication/internal/index.d.ts +7 -6
- package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +12 -11
- package/System.Security.Claims/internal/index.d.ts +45 -44
- package/System.Security.Cryptography/bindings.json +469 -469
- package/System.Security.Cryptography/internal/index.d.ts +269 -271
- package/System.Security.Cryptography.X509Certificates/bindings.json +0 -62
- package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +98 -105
- package/System.Security.Permissions/internal/index.d.ts +5 -4
- package/System.Security.Policy/internal/index.d.ts +11 -10
- package/System.Security.Principal/internal/index.d.ts +28 -27
- package/System.Text/bindings.json +1562 -1562
- package/System.Text/internal/index.d.ts +119 -121
- package/System.Text.Encodings.Web/internal/index.d.ts +2 -4
- package/System.Text.Json/bindings.json +0 -290
- package/System.Text.Json/internal/index.d.ts +135 -153
- package/System.Text.Json.Nodes/internal/index.d.ts +60 -62
- package/System.Text.Json.Schema/internal/index.d.ts +9 -8
- package/System.Text.Json.Serialization/internal/index.d.ts +32 -34
- package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +86 -85
- package/System.Text.Json.Serialization.d.ts +1 -1
- package/System.Text.RegularExpressions/bindings.json +198 -402
- package/System.Text.RegularExpressions/internal/index.d.ts +48 -64
- package/System.Text.Unicode/bindings.json +508 -508
- package/System.Text.Unicode/internal/index.d.ts +29 -31
- package/System.Threading/bindings.json +42 -42
- package/System.Threading/internal/index.d.ts +157 -159
- package/System.Threading.Channels/internal/index.d.ts +10 -12
- package/System.Threading.Tasks/bindings.json +4 -1
- package/System.Threading.Tasks/internal/index.d.ts +115 -114
- package/System.Threading.Tasks.Dataflow/internal/index.d.ts +32 -33
- package/System.Threading.Tasks.Sources/internal/index.d.ts +6 -5
- package/System.Timers/internal/index.d.ts +8 -7
- package/System.Transactions/internal/index.d.ts +31 -30
- package/System.Web/internal/index.d.ts +32 -31
- package/System.Windows.Input/internal/index.d.ts +5 -4
- package/System.Windows.Markup/internal/index.d.ts +3 -2
- package/System.Xml/internal/index.d.ts +383 -385
- package/System.Xml.Linq/internal/index.d.ts +103 -102
- package/System.Xml.Resolvers/internal/index.d.ts +10 -9
- package/System.Xml.Schema/bindings.json +76 -76
- package/System.Xml.Schema/internal/index.d.ts +233 -232
- package/System.Xml.Serialization/bindings.json +193 -0
- package/System.Xml.Serialization/internal/index.d.ts +277 -245
- package/System.Xml.Serialization.d.ts +2 -0
- package/System.Xml.XPath/internal/index.d.ts +46 -45
- package/System.Xml.Xsl/internal/index.d.ts +53 -52
- package/System.Xml.Xsl.Runtime/bindings.json +4 -1
- package/System.Xml.Xsl.Runtime/internal/index.d.ts +35 -37
- package/System.d.ts +2 -2
- package/__internal/extensions/index.d.ts +517 -515
- package/families.json +63 -7
- package/package.json +2 -2
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
// Namespace: System.Diagnostics.CodeAnalysis
|
|
3
3
|
// Assembly: System.Private.CoreLib
|
|
4
4
|
|
|
5
|
-
//
|
|
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():
|
|
63
|
-
set Max(value:
|
|
64
|
-
get Min():
|
|
65
|
-
set Min(value:
|
|
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 |
|
|
134
|
-
get Condition(): string |
|
|
135
|
-
set Condition(value: string |
|
|
136
|
-
readonly MemberSignature: string |
|
|
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 |
|
|
139
|
-
readonly TypeName: string |
|
|
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 |
|
|
158
|
-
set Justification(value: string |
|
|
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 |
|
|
174
|
-
set Message(value: string |
|
|
175
|
-
get UrlFormat(): string |
|
|
176
|
-
set UrlFormat(value: string |
|
|
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 |
|
|
318
|
-
get Url(): string |
|
|
319
|
-
set Url(value: string |
|
|
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 |
|
|
337
|
-
set Url(value: string |
|
|
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 |
|
|
354
|
-
set Url(value: string |
|
|
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: (
|
|
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:
|
|
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 |
|
|
412
|
-
set Justification(value: string |
|
|
413
|
-
get MessageId(): string |
|
|
414
|
-
set MessageId(value: string |
|
|
415
|
-
get Scope(): string |
|
|
416
|
-
set Scope(value: string |
|
|
417
|
-
get Target(): string |
|
|
418
|
-
set Target(value: string |
|
|
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 |
|
|
435
|
-
set Justification(value: string |
|
|
436
|
-
get MessageId(): string |
|
|
437
|
-
set MessageId(value: string |
|
|
438
|
-
get Scope(): string |
|
|
439
|
-
set Scope(value: string |
|
|
440
|
-
get Target(): string |
|
|
441
|
-
set Target(value: string |
|
|
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
|
-
//
|
|
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 |
|
|
87
|
+
readonly Condition: string | null;
|
|
90
88
|
readonly Failure: string;
|
|
91
89
|
readonly Kind: ContractFailureKind;
|
|
92
|
-
readonly UserMessage: string |
|
|
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 |
|
|
110
|
+
readonly Condition: string | null;
|
|
113
111
|
readonly FailureKind: ContractFailureKind;
|
|
114
112
|
readonly Handled: boolean;
|
|
115
|
-
readonly Message: string |
|
|
116
|
-
readonly OriginalException: Exception |
|
|
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 |
|
|
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
|
-
//
|
|
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
|
|
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
|
|
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,
|
|
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
|
|
45
|
-
new<T extends
|
|
46
|
-
new<T extends
|
|
47
|
-
new<T extends
|
|
48
|
-
new<T extends
|
|
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
|
|
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,
|
|
59
|
-
Add(delta: T, tag1: KeyValuePair_2<System_Internal.String,
|
|
60
|
-
Add(delta: T, tag1: KeyValuePair_2<System_Internal.String,
|
|
61
|
-
Add(delta: T, tags: ReadOnlySpan_1<KeyValuePair_2<System_Internal.String,
|
|
62
|
-
Add(delta: T, ...tags: KeyValuePair_2<System_Internal.String,
|
|
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
|
|
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,
|
|
78
|
-
Record(value: T, tag1: KeyValuePair_2<System_Internal.String,
|
|
79
|
-
Record(value: T, tag1: KeyValuePair_2<System_Internal.String,
|
|
80
|
-
Record(value: T, tags: ReadOnlySpan_1<KeyValuePair_2<System_Internal.String,
|
|
81
|
-
Record(value: T, ...tags: KeyValuePair_2<System_Internal.String,
|
|
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
|
|
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,
|
|
97
|
-
Record(value: T, tag1: KeyValuePair_2<System_Internal.String,
|
|
98
|
-
Record(value: T, tag1: KeyValuePair_2<System_Internal.String,
|
|
99
|
-
Record(value: T, tags: ReadOnlySpan_1<KeyValuePair_2<System_Internal.String,
|
|
100
|
-
Record(value: T, ...tags: KeyValuePair_2<System_Internal.String,
|
|
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 |
|
|
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,
|
|
120
|
-
readonly Unit: string |
|
|
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,
|
|
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
|
|
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> |
|
|
131
|
+
readonly Advice: InstrumentAdvice_1<T> | null;
|
|
134
132
|
}
|
|
135
133
|
|
|
136
134
|
|
|
137
|
-
export const Instrument_1: (abstract new<T extends
|
|
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
|
|
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> |
|
|
147
|
-
set HistogramBucketBoundaries(value: IReadOnlyList_1<T> |
|
|
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
|
|
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():
|
|
165
|
-
set Scope(value:
|
|
166
|
-
get Tags(): IEnumerable_1<KeyValuePair_2<System_Internal.String,
|
|
167
|
-
set Tags(value: IEnumerable_1<KeyValuePair_2<System_Internal.String,
|
|
168
|
-
get TelemetrySchemaUrl(): string |
|
|
169
|
-
set TelemetrySchemaUrl(value: string |
|
|
170
|
-
get Version(): string |
|
|
171
|
-
set Version(value: string |
|
|
172
|
-
CreateCounter<T extends
|
|
173
|
-
CreateCounter<T extends
|
|
174
|
-
CreateGauge<T extends
|
|
175
|
-
CreateGauge<T extends
|
|
176
|
-
CreateHistogram<T extends
|
|
177
|
-
CreateHistogram<T extends
|
|
178
|
-
CreateHistogram<T extends
|
|
179
|
-
CreateHistogram<T extends
|
|
180
|
-
CreateObservableCounter<T extends
|
|
181
|
-
CreateObservableCounter<T extends
|
|
182
|
-
CreateObservableGauge<T extends
|
|
183
|
-
CreateObservableGauge<T extends
|
|
184
|
-
CreateObservableUpDownCounter<T extends
|
|
185
|
-
CreateObservableUpDownCounter<T extends
|
|
186
|
-
CreateUpDownCounter<T extends
|
|
187
|
-
CreateUpDownCounter<T extends
|
|
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,
|
|
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> |
|
|
214
|
-
set InstrumentPublished(value: Action_2<Instrument, MeterListener> |
|
|
215
|
-
get MeasurementsCompleted(): Action_2<Instrument,
|
|
216
|
-
set MeasurementsCompleted(value: Action_2<Instrument,
|
|
217
|
-
DisableMeasurementEvents(instrument: Instrument):
|
|
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?:
|
|
217
|
+
EnableMeasurementEvents(instrument: Instrument, state?: JsValue | null): void;
|
|
220
218
|
RecordObservableInstruments(): void;
|
|
221
|
-
SetMeasurementEventCallback<T extends
|
|
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():
|
|
243
|
-
set Scope(value:
|
|
244
|
-
get Tags(): IEnumerable_1<KeyValuePair_2<System_Internal.String,
|
|
245
|
-
set Tags(value: IEnumerable_1<KeyValuePair_2<System_Internal.String,
|
|
246
|
-
get TelemetrySchemaUrl(): string |
|
|
247
|
-
set TelemetrySchemaUrl(value: string |
|
|
248
|
-
get Version(): string |
|
|
249
|
-
set Version(value: string |
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
318
|
-
Add(delta: T, tag1: KeyValuePair_2<System_Internal.String,
|
|
319
|
-
Add(delta: T, tag1: KeyValuePair_2<System_Internal.String,
|
|
320
|
-
Add(delta: T, tags: ReadOnlySpan_1<KeyValuePair_2<System_Internal.String,
|
|
321
|
-
Add(delta: T, ...tags: KeyValuePair_2<System_Internal.String,
|
|
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,
|
|
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 [
|
|
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';
|