@tsonic/microsoft-extensions 10.0.40 → 10.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Microsoft.Extensions.Caching.Distributed/internal/index.d.ts +11 -10
- package/Microsoft.Extensions.Caching.Distributed.d.ts +4 -0
- package/Microsoft.Extensions.Caching.Hybrid/internal/index.d.ts +12 -14
- package/Microsoft.Extensions.Caching.Hybrid.d.ts +5 -1
- package/Microsoft.Extensions.Caching.Memory/internal/index.d.ts +32 -34
- package/Microsoft.Extensions.Caching.Memory.d.ts +4 -0
- package/Microsoft.Extensions.Configuration/internal/index.d.ts +72 -74
- package/Microsoft.Extensions.Configuration.CommandLine/internal/index.d.ts +7 -6
- package/Microsoft.Extensions.Configuration.CommandLine.d.ts +4 -0
- package/Microsoft.Extensions.Configuration.EnvironmentVariables/internal/index.d.ts +7 -6
- package/Microsoft.Extensions.Configuration.EnvironmentVariables.d.ts +4 -0
- package/Microsoft.Extensions.Configuration.Ini/internal/index.d.ts +6 -5
- package/Microsoft.Extensions.Configuration.Ini.d.ts +4 -0
- package/Microsoft.Extensions.Configuration.Json/internal/index.d.ts +5 -4
- package/Microsoft.Extensions.Configuration.Json.d.ts +4 -0
- package/Microsoft.Extensions.Configuration.KeyPerFile/internal/index.d.ts +6 -5
- package/Microsoft.Extensions.Configuration.KeyPerFile.d.ts +4 -0
- package/Microsoft.Extensions.Configuration.Memory/internal/index.d.ts +6 -5
- package/Microsoft.Extensions.Configuration.Memory.d.ts +4 -0
- package/Microsoft.Extensions.Configuration.UserSecrets/internal/index.d.ts +3 -2
- package/Microsoft.Extensions.Configuration.UserSecrets.d.ts +4 -0
- package/Microsoft.Extensions.Configuration.Xml/internal/index.d.ts +7 -6
- package/Microsoft.Extensions.Configuration.Xml.d.ts +4 -0
- package/Microsoft.Extensions.Configuration.d.ts +4 -0
- package/Microsoft.Extensions.DependencyInjection/internal/index.d.ts +132 -131
- package/Microsoft.Extensions.DependencyInjection.Extensions/internal/index.d.ts +29 -28
- package/Microsoft.Extensions.DependencyInjection.Extensions.d.ts +4 -0
- package/Microsoft.Extensions.DependencyInjection.d.ts +7 -3
- package/Microsoft.Extensions.Diagnostics.HealthChecks/internal/index.d.ts +20 -19
- package/Microsoft.Extensions.Diagnostics.HealthChecks.d.ts +4 -0
- package/Microsoft.Extensions.Diagnostics.Metrics/internal/index.d.ts +31 -33
- package/Microsoft.Extensions.Diagnostics.Metrics.Configuration/internal/index.d.ts +3 -2
- package/Microsoft.Extensions.Diagnostics.Metrics.Configuration.d.ts +4 -0
- package/Microsoft.Extensions.Diagnostics.Metrics.d.ts +4 -0
- package/Microsoft.Extensions.FileProviders/internal/index.d.ts +6 -5
- package/Microsoft.Extensions.FileProviders.Composite/internal/index.d.ts +3 -2
- package/Microsoft.Extensions.FileProviders.Composite.d.ts +4 -0
- package/Microsoft.Extensions.FileProviders.Embedded/internal/index.d.ts +3 -2
- package/Microsoft.Extensions.FileProviders.Embedded.d.ts +4 -0
- package/Microsoft.Extensions.FileProviders.Internal/internal/index.d.ts +3 -2
- package/Microsoft.Extensions.FileProviders.Internal.d.ts +4 -0
- package/Microsoft.Extensions.FileProviders.Physical/internal/index.d.ts +6 -5
- package/Microsoft.Extensions.FileProviders.Physical.d.ts +4 -0
- package/Microsoft.Extensions.FileProviders.d.ts +4 -0
- package/Microsoft.Extensions.FileSystemGlobbing/internal/index.d.ts +9 -8
- package/Microsoft.Extensions.FileSystemGlobbing.Abstractions/internal/index.d.ts +9 -8
- package/Microsoft.Extensions.FileSystemGlobbing.Abstractions.d.ts +4 -0
- package/Microsoft.Extensions.FileSystemGlobbing.Internal/internal/index.d.ts +5 -4
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.PathSegments/internal/index.d.ts +4 -3
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.PathSegments.d.ts +4 -0
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts/bindings.json +230 -230
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts/internal/index.d.ts +50 -49
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts.d.ts +6 -2
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.Patterns/internal/index.d.ts +3 -2
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.Patterns.d.ts +4 -0
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.d.ts +4 -0
- package/Microsoft.Extensions.FileSystemGlobbing.d.ts +4 -0
- package/Microsoft.Extensions.Hosting/internal/index.d.ts +31 -30
- package/Microsoft.Extensions.Hosting.Internal/internal/index.d.ts +3 -2
- package/Microsoft.Extensions.Hosting.Internal.d.ts +4 -0
- package/Microsoft.Extensions.Hosting.d.ts +4 -0
- package/Microsoft.Extensions.Http/internal/index.d.ts +7 -6
- package/Microsoft.Extensions.Http.Logging/internal/index.d.ts +11 -10
- package/Microsoft.Extensions.Http.Logging.d.ts +4 -0
- package/Microsoft.Extensions.Http.d.ts +5 -1
- package/Microsoft.Extensions.Internal/internal/index.d.ts +3 -2
- package/Microsoft.Extensions.Internal.d.ts +4 -0
- package/Microsoft.Extensions.Localization/internal/index.d.ts +18 -17
- package/Microsoft.Extensions.Localization.d.ts +6 -2
- package/Microsoft.Extensions.Logging/internal/index.d.ts +91 -88
- package/Microsoft.Extensions.Logging.Abstractions/bindings.json +4 -1
- package/Microsoft.Extensions.Logging.Abstractions/internal/index.d.ts +20 -19
- package/Microsoft.Extensions.Logging.Abstractions.d.ts +6 -2
- package/Microsoft.Extensions.Logging.Configuration/internal/index.d.ts +10 -9
- package/Microsoft.Extensions.Logging.Configuration.d.ts +5 -1
- package/Microsoft.Extensions.Logging.Console/internal/index.d.ts +15 -17
- package/Microsoft.Extensions.Logging.Console.d.ts +4 -0
- package/Microsoft.Extensions.Logging.Debug/internal/index.d.ts +3 -2
- package/Microsoft.Extensions.Logging.Debug.d.ts +4 -0
- package/Microsoft.Extensions.Logging.EventLog/internal/index.d.ts +12 -11
- package/Microsoft.Extensions.Logging.EventLog.d.ts +4 -0
- package/Microsoft.Extensions.Logging.EventSource/internal/index.d.ts +3 -2
- package/Microsoft.Extensions.Logging.EventSource.d.ts +4 -0
- package/Microsoft.Extensions.Logging.TraceSource/internal/index.d.ts +4 -3
- package/Microsoft.Extensions.Logging.TraceSource.d.ts +4 -0
- package/Microsoft.Extensions.Logging.d.ts +6 -2
- package/Microsoft.Extensions.ObjectPool/internal/index.d.ts +31 -30
- package/Microsoft.Extensions.ObjectPool.d.ts +7 -3
- package/Microsoft.Extensions.Options/internal/index.d.ts +239 -238
- package/Microsoft.Extensions.Options.d.ts +50 -46
- package/Microsoft.Extensions.Primitives/internal/index.d.ts +30 -32
- package/Microsoft.Extensions.Primitives.d.ts +5 -1
- package/Microsoft.Extensions.Validation/internal/index.d.ts +14 -16
- package/Microsoft.Extensions.Validation.d.ts +4 -0
- package/Microsoft.Extensions.WebEncoders/internal/index.d.ts +5 -4
- package/Microsoft.Extensions.WebEncoders.Testing/internal/index.d.ts +2 -4
- package/Microsoft.Extensions.WebEncoders.Testing.d.ts +4 -0
- package/Microsoft.Extensions.WebEncoders.d.ts +4 -0
- package/README.md +53 -15
- package/System.Diagnostics/internal/index.d.ts +3 -2
- package/System.Diagnostics.Eventing.Reader/internal/index.d.ts +3 -2
- package/System.Diagnostics.Eventing.Reader.d.ts +4 -0
- package/System.Diagnostics.d.ts +4 -0
- package/System.Net.Http/internal/index.d.ts +3 -2
- package/System.Net.Http.d.ts +4 -0
- package/System.Security.Cryptography/internal/index.d.ts +4 -3
- package/System.Security.Cryptography.Pkcs/internal/index.d.ts +44 -46
- package/System.Security.Cryptography.Pkcs.d.ts +4 -0
- package/System.Security.Cryptography.Xml/bindings.json +404 -404
- package/System.Security.Cryptography.Xml/internal/index.d.ts +117 -119
- package/System.Security.Cryptography.Xml.d.ts +4 -0
- package/System.Security.Cryptography.d.ts +4 -0
- package/__internal/extensions/index.d.ts +212 -214
- package/package.json +3 -3
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
// Import internal declarations
|
|
6
6
|
import * as Internal from './Microsoft.Extensions.Options/internal/index.js';
|
|
7
7
|
|
|
8
|
+
// Core type aliases from @tsonic/core
|
|
9
|
+
import type { fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
10
|
+
|
|
11
|
+
|
|
8
12
|
// Cross-namespace type imports for constraints
|
|
9
13
|
import type { BinderOptions, IConfiguration } from './Microsoft.Extensions.Configuration/internal/index.js';
|
|
10
14
|
import type { IServiceCollection } from './Microsoft.Extensions.DependencyInjection/internal/index.js';
|
|
@@ -16,17 +20,17 @@ import type { ISerializable } from '@tsonic/dotnet/System.Runtime.Serialization.
|
|
|
16
20
|
|
|
17
21
|
// Public API exports (curated - no internal $instance/$views leakage)
|
|
18
22
|
export { ConfigureOptions_1 as ConfigureOptions } from './Microsoft.Extensions.Options/internal/index.js';
|
|
19
|
-
export type IConfigureNamedOptions<TOptions> = Internal.IConfigureNamedOptions_1<TOptions>;
|
|
20
|
-
export type IConfigureOptions<TOptions> = Internal.IConfigureOptions_1<TOptions>;
|
|
21
|
-
export type IOptions<TOptions> = Internal.IOptions_1<TOptions>;
|
|
22
|
-
export type IOptionsChangeTokenSource<TOptions> = Internal.IOptionsChangeTokenSource_1<TOptions>;
|
|
23
|
-
export type IOptionsFactory<TOptions> = Internal.IOptionsFactory_1<TOptions>;
|
|
24
|
-
export type IOptionsMonitor<TOptions> = Internal.IOptionsMonitor_1<TOptions>;
|
|
25
|
-
export type IOptionsMonitorCache<TOptions> = Internal.IOptionsMonitorCache_1<TOptions>;
|
|
26
|
-
export type IOptionsSnapshot<TOptions> = Internal.IOptionsSnapshot_1<TOptions>;
|
|
27
|
-
export type IPostConfigureOptions<TOptions> = Internal.IPostConfigureOptions_1<TOptions>;
|
|
23
|
+
export type IConfigureNamedOptions<TOptions extends (object | null)> = Internal.IConfigureNamedOptions_1<TOptions>;
|
|
24
|
+
export type IConfigureOptions<TOptions extends (object | null)> = Internal.IConfigureOptions_1<TOptions>;
|
|
25
|
+
export type IOptions<TOptions extends (object | null)> = Internal.IOptions_1<TOptions>;
|
|
26
|
+
export type IOptionsChangeTokenSource<TOptions extends unknown> = Internal.IOptionsChangeTokenSource_1<TOptions>;
|
|
27
|
+
export type IOptionsFactory<TOptions extends (object | null)> = Internal.IOptionsFactory_1<TOptions>;
|
|
28
|
+
export type IOptionsMonitor<TOptions extends unknown> = Internal.IOptionsMonitor_1<TOptions>;
|
|
29
|
+
export type IOptionsMonitorCache<TOptions extends (object | null)> = Internal.IOptionsMonitorCache_1<TOptions>;
|
|
30
|
+
export type IOptionsSnapshot<TOptions extends (object | null)> = Internal.IOptionsSnapshot_1<TOptions>;
|
|
31
|
+
export type IPostConfigureOptions<TOptions extends (object | null)> = Internal.IPostConfigureOptions_1<TOptions>;
|
|
28
32
|
export type IStartupValidator = Internal.IStartupValidator;
|
|
29
|
-
export type IValidateOptions<TOptions> = Internal.IValidateOptions_1<TOptions>;
|
|
33
|
+
export type IValidateOptions<TOptions extends (object | null)> = Internal.IValidateOptions_1<TOptions>;
|
|
30
34
|
export { Options$instance as Options } from './Microsoft.Extensions.Options/internal/index.js';
|
|
31
35
|
export { OptionsBuilder_1 as OptionsBuilder } from './Microsoft.Extensions.Options/internal/index.js';
|
|
32
36
|
export { OptionsCache_1 as OptionsCache } from './Microsoft.Extensions.Options/internal/index.js';
|
|
@@ -53,49 +57,49 @@ declare const __unspecified: unique symbol;
|
|
|
53
57
|
export type __ = typeof __unspecified;
|
|
54
58
|
|
|
55
59
|
export type ConfigureNamedOptions<
|
|
56
|
-
T1 = __,
|
|
57
|
-
T2 = __,
|
|
58
|
-
T3 = __,
|
|
59
|
-
T4 = __,
|
|
60
|
-
T5 = __,
|
|
61
|
-
T6 = __,
|
|
60
|
+
T1 extends (object | null) | __ = __,
|
|
61
|
+
T2 extends (object | null) | __ = __,
|
|
62
|
+
T3 extends (object | null) | __ = __,
|
|
63
|
+
T4 extends (object | null) | __ = __,
|
|
64
|
+
T5 extends (object | null) | __ = __,
|
|
65
|
+
T6 extends (object | null) | __ = __,
|
|
62
66
|
> =
|
|
63
|
-
[T2] extends [__] ? Internal.ConfigureNamedOptions_1<T1> :
|
|
64
|
-
[T3] extends [__] ? Internal.ConfigureNamedOptions_2<T1, T2> :
|
|
65
|
-
[T4] extends [__] ? Internal.ConfigureNamedOptions_3<T1, T2, T3> :
|
|
66
|
-
[T5] extends [__] ? Internal.ConfigureNamedOptions_4<T1, T2, T3, T4> :
|
|
67
|
-
[T6] extends [__] ? Internal.ConfigureNamedOptions_5<T1, T2, T3, T4, T5> :
|
|
68
|
-
Internal.ConfigureNamedOptions_6<T1, T2, T3, T4, T5, T6
|
|
67
|
+
[T2] extends [__] ? [T1] extends [(object | null)] ? Internal.ConfigureNamedOptions_1<T1> : never :
|
|
68
|
+
[T3] extends [__] ? [T1] extends [(object | null)] ? [T2] extends [(object | null)] ? Internal.ConfigureNamedOptions_2<T1, T2> : never : never :
|
|
69
|
+
[T4] extends [__] ? [T1] extends [(object | null)] ? [T2] extends [(object | null)] ? [T3] extends [(object | null)] ? Internal.ConfigureNamedOptions_3<T1, T2, T3> : never : never : never :
|
|
70
|
+
[T5] extends [__] ? [T1] extends [(object | null)] ? [T2] extends [(object | null)] ? [T3] extends [(object | null)] ? [T4] extends [(object | null)] ? Internal.ConfigureNamedOptions_4<T1, T2, T3, T4> : never : never : never : never :
|
|
71
|
+
[T6] extends [__] ? [T1] extends [(object | null)] ? [T2] extends [(object | null)] ? [T3] extends [(object | null)] ? [T4] extends [(object | null)] ? [T5] extends [(object | null)] ? Internal.ConfigureNamedOptions_5<T1, T2, T3, T4, T5> : never : never : never : never : never :
|
|
72
|
+
[T1] extends [(object | null)] ? [T2] extends [(object | null)] ? [T3] extends [(object | null)] ? [T4] extends [(object | null)] ? [T5] extends [(object | null)] ? [T6] extends [(object | null)] ? Internal.ConfigureNamedOptions_6<T1, T2, T3, T4, T5, T6> : never : never : never : never : never : never;
|
|
69
73
|
|
|
70
74
|
export type PostConfigureOptions<
|
|
71
|
-
T1 = __,
|
|
72
|
-
T2 = __,
|
|
73
|
-
T3 = __,
|
|
74
|
-
T4 = __,
|
|
75
|
-
T5 = __,
|
|
76
|
-
T6 = __,
|
|
75
|
+
T1 extends (object | null) | __ = __,
|
|
76
|
+
T2 extends (object | null) | __ = __,
|
|
77
|
+
T3 extends (object | null) | __ = __,
|
|
78
|
+
T4 extends (object | null) | __ = __,
|
|
79
|
+
T5 extends (object | null) | __ = __,
|
|
80
|
+
T6 extends (object | null) | __ = __,
|
|
77
81
|
> =
|
|
78
|
-
[T2] extends [__] ? Internal.PostConfigureOptions_1<T1> :
|
|
79
|
-
[T3] extends [__] ? Internal.PostConfigureOptions_2<T1, T2> :
|
|
80
|
-
[T4] extends [__] ? Internal.PostConfigureOptions_3<T1, T2, T3> :
|
|
81
|
-
[T5] extends [__] ? Internal.PostConfigureOptions_4<T1, T2, T3, T4> :
|
|
82
|
-
[T6] extends [__] ? Internal.PostConfigureOptions_5<T1, T2, T3, T4, T5> :
|
|
83
|
-
Internal.PostConfigureOptions_6<T1, T2, T3, T4, T5, T6
|
|
82
|
+
[T2] extends [__] ? [T1] extends [(object | null)] ? Internal.PostConfigureOptions_1<T1> : never :
|
|
83
|
+
[T3] extends [__] ? [T1] extends [(object | null)] ? [T2] extends [(object | null)] ? Internal.PostConfigureOptions_2<T1, T2> : never : never :
|
|
84
|
+
[T4] extends [__] ? [T1] extends [(object | null)] ? [T2] extends [(object | null)] ? [T3] extends [(object | null)] ? Internal.PostConfigureOptions_3<T1, T2, T3> : never : never : never :
|
|
85
|
+
[T5] extends [__] ? [T1] extends [(object | null)] ? [T2] extends [(object | null)] ? [T3] extends [(object | null)] ? [T4] extends [(object | null)] ? Internal.PostConfigureOptions_4<T1, T2, T3, T4> : never : never : never : never :
|
|
86
|
+
[T6] extends [__] ? [T1] extends [(object | null)] ? [T2] extends [(object | null)] ? [T3] extends [(object | null)] ? [T4] extends [(object | null)] ? [T5] extends [(object | null)] ? Internal.PostConfigureOptions_5<T1, T2, T3, T4, T5> : never : never : never : never : never :
|
|
87
|
+
[T1] extends [(object | null)] ? [T2] extends [(object | null)] ? [T3] extends [(object | null)] ? [T4] extends [(object | null)] ? [T5] extends [(object | null)] ? [T6] extends [(object | null)] ? Internal.PostConfigureOptions_6<T1, T2, T3, T4, T5, T6> : never : never : never : never : never : never;
|
|
84
88
|
|
|
85
89
|
export type ValidateOptions<
|
|
86
|
-
T1 = __,
|
|
87
|
-
T2 = __,
|
|
88
|
-
T3 = __,
|
|
89
|
-
T4 = __,
|
|
90
|
-
T5 = __,
|
|
91
|
-
T6 = __,
|
|
90
|
+
T1 extends (object | null) | __ = __,
|
|
91
|
+
T2 extends unknown | __ = __,
|
|
92
|
+
T3 extends unknown | __ = __,
|
|
93
|
+
T4 extends unknown | __ = __,
|
|
94
|
+
T5 extends unknown | __ = __,
|
|
95
|
+
T6 extends unknown | __ = __,
|
|
92
96
|
> =
|
|
93
|
-
[T2] extends [__] ? Internal.ValidateOptions_1<T1> :
|
|
94
|
-
[T3] extends [__] ? Internal.ValidateOptions_2<T1, T2> :
|
|
95
|
-
[T4] extends [__] ? Internal.ValidateOptions_3<T1, T2, T3> :
|
|
96
|
-
[T5] extends [__] ? Internal.ValidateOptions_4<T1, T2, T3, T4> :
|
|
97
|
-
[T6] extends [__] ? Internal.ValidateOptions_5<T1, T2, T3, T4, T5> :
|
|
98
|
-
Internal.ValidateOptions_6<T1, T2, T3, T4, T5, T6
|
|
97
|
+
[T2] extends [__] ? [T1] extends [(object | null)] ? Internal.ValidateOptions_1<T1> : never :
|
|
98
|
+
[T3] extends [__] ? [T1] extends [(object | null)] ? [T2] extends [unknown] ? Internal.ValidateOptions_2<T1, T2> : never : never :
|
|
99
|
+
[T4] extends [__] ? [T1] extends [(object | null)] ? [T2] extends [unknown] ? [T3] extends [unknown] ? Internal.ValidateOptions_3<T1, T2, T3> : never : never : never :
|
|
100
|
+
[T5] extends [__] ? [T1] extends [(object | null)] ? [T2] extends [unknown] ? [T3] extends [unknown] ? [T4] extends [unknown] ? Internal.ValidateOptions_4<T1, T2, T3, T4> : never : never : never : never :
|
|
101
|
+
[T6] extends [__] ? [T1] extends [(object | null)] ? [T2] extends [unknown] ? [T3] extends [unknown] ? [T4] extends [unknown] ? [T5] extends [unknown] ? Internal.ValidateOptions_5<T1, T2, T3, T4, T5> : never : never : never : never : never :
|
|
102
|
+
[T1] extends [(object | null)] ? [T2] extends [unknown] ? [T3] extends [unknown] ? [T4] extends [unknown] ? [T5] extends [unknown] ? [T6] extends [unknown] ? Internal.ValidateOptions_6<T1, T2, T3, T4, T5, T6> : never : never : never : never : never : never;
|
|
99
103
|
|
|
100
104
|
// Extension methods (C# using semantics)
|
|
101
105
|
export type { ExtensionMethods_Microsoft_Extensions_Options as ExtensionMethods } from './__internal/extensions/index.js';
|
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
// Namespace: Microsoft.Extensions.Primitives
|
|
3
3
|
// Assembly: Microsoft.Extensions.Primitives
|
|
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 { 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 * as System_Collections_Generic_Internal from "@tsonic/dotnet/System.Collections.Generic/internal/index.js";
|
|
@@ -23,7 +21,7 @@ export interface IChangeToken$instance {
|
|
|
23
21
|
|
|
24
22
|
readonly HasChanged: boolean;
|
|
25
23
|
readonly ActiveChangeCallbacks: boolean;
|
|
26
|
-
RegisterChangeCallback(callback: Action_1<unknown>, state: unknown): IDisposable;
|
|
24
|
+
RegisterChangeCallback(callback: Action_1<unknown | null>, state: unknown | null): IDisposable;
|
|
27
25
|
}
|
|
28
26
|
|
|
29
27
|
|
|
@@ -33,11 +31,11 @@ export interface InplaceStringBuilder$instance {
|
|
|
33
31
|
readonly __tsonic_type_Microsoft_Extensions_Primitives_InplaceStringBuilder: never;
|
|
34
32
|
|
|
35
33
|
Capacity: int;
|
|
36
|
-
Append(value: string): void;
|
|
34
|
+
Append(value: string | null): void;
|
|
37
35
|
Append(segment: StringSegment): void;
|
|
38
|
-
Append(value: string, offset: int, count: int): void;
|
|
36
|
+
Append(value: string | null, offset: int, count: int): void;
|
|
39
37
|
Append(c: char): void;
|
|
40
|
-
ToString(): string |
|
|
38
|
+
ToString(): string | null;
|
|
41
39
|
}
|
|
42
40
|
|
|
43
41
|
|
|
@@ -53,21 +51,21 @@ export interface StringSegment$instance {
|
|
|
53
51
|
|
|
54
52
|
readonly __tsonic_iface_System_IEquatable_1: never;
|
|
55
53
|
|
|
56
|
-
readonly Buffer: string |
|
|
54
|
+
readonly Buffer: string | null;
|
|
57
55
|
readonly HasValue: boolean;
|
|
58
56
|
readonly Length: int;
|
|
59
57
|
readonly Offset: int;
|
|
60
|
-
readonly Value: string |
|
|
58
|
+
readonly Value: string | null;
|
|
61
59
|
AsMemory(): ReadOnlyMemory_1<System_Internal.Char>;
|
|
62
60
|
AsSpan(): ReadOnlySpan_1<System_Internal.Char>;
|
|
63
61
|
AsSpan(start: int): ReadOnlySpan_1<System_Internal.Char>;
|
|
64
62
|
AsSpan(start: int, length: int): ReadOnlySpan_1<System_Internal.Char>;
|
|
65
63
|
EndsWith(text: string, comparisonType: StringComparison): boolean;
|
|
66
|
-
Equals(obj: unknown): boolean;
|
|
64
|
+
Equals(obj: unknown | null): boolean;
|
|
67
65
|
Equals(other: StringSegment): boolean;
|
|
68
66
|
Equals(other: StringSegment, comparisonType: StringComparison): boolean;
|
|
69
|
-
Equals(text: string): boolean;
|
|
70
|
-
Equals(text: string, comparisonType: StringComparison): boolean;
|
|
67
|
+
Equals(text: string | null): boolean;
|
|
68
|
+
Equals(text: string | null, comparisonType: StringComparison): boolean;
|
|
71
69
|
GetHashCode(): int;
|
|
72
70
|
IndexOf(c: char, start: int, count: int): int;
|
|
73
71
|
IndexOf(c: char, start: int): int;
|
|
@@ -90,7 +88,7 @@ export interface StringSegment$instance {
|
|
|
90
88
|
|
|
91
89
|
|
|
92
90
|
export const StringSegment: {
|
|
93
|
-
new(buffer: string): StringSegment;
|
|
91
|
+
new(buffer: string | null): StringSegment;
|
|
94
92
|
new(buffer: string, offset: int, length: int): StringSegment;
|
|
95
93
|
readonly Empty: StringSegment;
|
|
96
94
|
Compare(a: StringSegment, b: StringSegment, comparisonType: StringComparison): int;
|
|
@@ -153,33 +151,33 @@ export interface StringValues$instance {
|
|
|
153
151
|
|
|
154
152
|
readonly Count: int;
|
|
155
153
|
Equals(other: StringValues): boolean;
|
|
156
|
-
Equals(other: string): boolean;
|
|
157
|
-
Equals(other: string[]): boolean;
|
|
158
|
-
Equals(obj: unknown): boolean;
|
|
154
|
+
Equals(other: string | null): boolean;
|
|
155
|
+
Equals(other: (string | null)[] | null): boolean;
|
|
156
|
+
Equals(obj: unknown | null): boolean;
|
|
159
157
|
GetEnumerator(): StringValues_Enumerator;
|
|
160
158
|
GetHashCode(): int;
|
|
161
|
-
ToArray(): (string |
|
|
159
|
+
ToArray(): (string | null)[];
|
|
162
160
|
ToString(): string;
|
|
163
161
|
}
|
|
164
162
|
|
|
165
163
|
|
|
166
164
|
export const StringValues: {
|
|
167
|
-
new(value: string): StringValues;
|
|
168
|
-
new(values: string[]): StringValues;
|
|
165
|
+
new(value: string | null): StringValues;
|
|
166
|
+
new(values: (string | null)[] | null): StringValues;
|
|
169
167
|
readonly Empty: StringValues;
|
|
170
168
|
Concat(values1: StringValues, values2: StringValues): StringValues;
|
|
171
|
-
Concat(values: StringValues, value: string): StringValues;
|
|
172
|
-
Concat(value: string, values: StringValues): StringValues;
|
|
169
|
+
Concat(values: StringValues, value: string | null): StringValues;
|
|
170
|
+
Concat(value: string | null, values: StringValues): StringValues;
|
|
173
171
|
Equals(left: StringValues, right: StringValues): boolean;
|
|
174
|
-
Equals(left: StringValues, right: string): boolean;
|
|
175
|
-
Equals(left: StringValues, right: string[]): boolean;
|
|
176
|
-
Equals(left: string, right: StringValues): boolean;
|
|
177
|
-
Equals(left: string[], right: StringValues): boolean;
|
|
172
|
+
Equals(left: StringValues, right: string | null): boolean;
|
|
173
|
+
Equals(left: StringValues, right: (string | null)[] | null): boolean;
|
|
174
|
+
Equals(left: string | null, right: StringValues): boolean;
|
|
175
|
+
Equals(left: (string | null)[] | null, right: StringValues): boolean;
|
|
178
176
|
IsNullOrEmpty(value: StringValues): boolean;
|
|
179
177
|
};
|
|
180
178
|
|
|
181
179
|
|
|
182
|
-
export type StringValues = StringValues$instance & { readonly [index: number]: string |
|
|
180
|
+
export type StringValues = StringValues$instance & { readonly [index: number]: string | null; };
|
|
183
181
|
|
|
184
182
|
export interface StringValues_Enumerator$instance {
|
|
185
183
|
readonly __tsonic_type_Microsoft_Extensions_Primitives_StringValues_Enumerator: never;
|
|
@@ -188,7 +186,7 @@ export interface StringValues_Enumerator$instance {
|
|
|
188
186
|
readonly __tsonic_iface_System_Collections_IEnumerator: never;
|
|
189
187
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
190
188
|
|
|
191
|
-
readonly Current: string |
|
|
189
|
+
readonly Current: string | null;
|
|
192
190
|
Dispose(): void;
|
|
193
191
|
MoveNext(): boolean;
|
|
194
192
|
Reset(): void;
|
|
@@ -209,7 +207,7 @@ export interface CancellationChangeToken$instance {
|
|
|
209
207
|
|
|
210
208
|
ActiveChangeCallbacks: boolean;
|
|
211
209
|
readonly HasChanged: boolean;
|
|
212
|
-
RegisterChangeCallback(callback: Action_1<unknown>, state: unknown): IDisposable;
|
|
210
|
+
RegisterChangeCallback(callback: Action_1<unknown | null>, state: unknown | null): IDisposable;
|
|
213
211
|
}
|
|
214
212
|
|
|
215
213
|
|
|
@@ -233,7 +231,7 @@ export interface CompositeChangeToken$instance extends IChangeToken$instance {
|
|
|
233
231
|
readonly ActiveChangeCallbacks: boolean;
|
|
234
232
|
readonly ChangeTokens: IReadOnlyList_1<IChangeToken>;
|
|
235
233
|
readonly HasChanged: boolean;
|
|
236
|
-
RegisterChangeCallback(callback: Action_1<unknown>, state: unknown): IDisposable;
|
|
234
|
+
RegisterChangeCallback(callback: Action_1<unknown | null>, state: unknown | null): IDisposable;
|
|
237
235
|
}
|
|
238
236
|
|
|
239
237
|
|
|
@@ -270,8 +268,8 @@ export const StringSegmentComparer: {
|
|
|
270
268
|
export type StringSegmentComparer = StringSegmentComparer$instance;
|
|
271
269
|
|
|
272
270
|
export abstract class ChangeToken$instance {
|
|
273
|
-
static OnChange<TState>(changeTokenProducer: Func_1<IChangeToken>, changeTokenConsumer: Action_1<TState>, state: TState): IDisposable;
|
|
274
|
-
static OnChange(changeTokenProducer: Func_1<IChangeToken>, changeTokenConsumer: Action): IDisposable;
|
|
271
|
+
static OnChange<TState extends unknown>(changeTokenProducer: Func_1<IChangeToken | null>, changeTokenConsumer: Action_1<TState>, state: TState): IDisposable;
|
|
272
|
+
static OnChange(changeTokenProducer: Func_1<IChangeToken | null>, changeTokenConsumer: Action): IDisposable;
|
|
275
273
|
}
|
|
276
274
|
|
|
277
275
|
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
// Import internal declarations
|
|
6
6
|
import * as Internal from './Microsoft.Extensions.Primitives/internal/index.js';
|
|
7
7
|
|
|
8
|
+
// Core type aliases from @tsonic/core
|
|
9
|
+
import type { fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
10
|
+
|
|
11
|
+
|
|
8
12
|
// Cross-namespace type imports for constraints
|
|
9
13
|
import type { ICollection, IComparer, IEnumerable as IEnumerable__System_Collections_Generic, IEnumerator as IEnumerator__System_Collections_Generic, IEqualityComparer, IList, IReadOnlyCollection, IReadOnlyList } from '@tsonic/dotnet/System.Collections.Generic.js';
|
|
10
14
|
import type { IEnumerable, IEnumerator } from '@tsonic/dotnet/System.Collections.js';
|
|
@@ -22,8 +26,8 @@ export { InplaceStringBuilder as InplaceStringBuilder } from './Microsoft.Extens
|
|
|
22
26
|
export { StringSegment as StringSegment } from './Microsoft.Extensions.Primitives/internal/index.js';
|
|
23
27
|
export { StringSegmentComparer as StringSegmentComparer } from './Microsoft.Extensions.Primitives/internal/index.js';
|
|
24
28
|
export { StringTokenizer as StringTokenizer } from './Microsoft.Extensions.Primitives/internal/index.js';
|
|
25
|
-
export { StringValues as StringValues } from './Microsoft.Extensions.Primitives/internal/index.js';
|
|
26
29
|
export { StringTokenizer_Enumerator as StringTokenizer_Enumerator } from './Microsoft.Extensions.Primitives/internal/index.js';
|
|
30
|
+
export { StringValues as StringValues } from './Microsoft.Extensions.Primitives/internal/index.js';
|
|
27
31
|
export { StringValues_Enumerator as StringValues_Enumerator } from './Microsoft.Extensions.Primitives/internal/index.js';
|
|
28
32
|
// Extension methods (C# using semantics)
|
|
29
33
|
export type { ExtensionMethods_Microsoft_Extensions_Primitives as ExtensionMethods } from './__internal/extensions/index.js';
|
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
// Namespace: Microsoft.Extensions.Validation
|
|
3
3
|
// Assembly: Microsoft.Extensions.Validation
|
|
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 { 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 { Dictionary_2, IList_1, IReadOnlyList_1 } from "@tsonic/dotnet/System.Collections.Generic/internal/index.js";
|
|
@@ -20,7 +18,7 @@ import type { Action_1, Attribute, Boolean as ClrBoolean, Int32, Object as ClrOb
|
|
|
20
18
|
export interface IValidatableInfo$instance {
|
|
21
19
|
readonly __tsonic_iface_Microsoft_Extensions_Validation_IValidatableInfo: never;
|
|
22
20
|
|
|
23
|
-
ValidateAsync(value: unknown, context: ValidateContext, cancellationToken: CancellationToken): Task;
|
|
21
|
+
ValidateAsync(value: unknown | null, context: ValidateContext, cancellationToken: CancellationToken): Task;
|
|
24
22
|
}
|
|
25
23
|
|
|
26
24
|
|
|
@@ -29,8 +27,8 @@ export type IValidatableInfo = IValidatableInfo$instance;
|
|
|
29
27
|
export interface IValidatableInfoResolver$instance {
|
|
30
28
|
readonly __tsonic_iface_Microsoft_Extensions_Validation_IValidatableInfoResolver: never;
|
|
31
29
|
|
|
32
|
-
TryGetValidatableParameterInfo(parameterInfo: ParameterInfo, validatableInfo: IValidatableInfo): boolean;
|
|
33
|
-
TryGetValidatableTypeInfo(type: Type, validatableInfo: IValidatableInfo): boolean;
|
|
30
|
+
TryGetValidatableParameterInfo(parameterInfo: ParameterInfo, validatableInfo: IValidatableInfo | null): boolean;
|
|
31
|
+
TryGetValidatableTypeInfo(type: Type, validatableInfo: IValidatableInfo | null): boolean;
|
|
34
32
|
}
|
|
35
33
|
|
|
36
34
|
|
|
@@ -39,8 +37,8 @@ export type IValidatableInfoResolver = IValidatableInfoResolver$instance;
|
|
|
39
37
|
export interface ValidationErrorContext$instance {
|
|
40
38
|
readonly __tsonic_type_Microsoft_Extensions_Validation_ValidationErrorContext: never;
|
|
41
39
|
|
|
42
|
-
get Container(): unknown |
|
|
43
|
-
set Container(value: unknown |
|
|
40
|
+
get Container(): unknown | null;
|
|
41
|
+
set Container(value: unknown | null);
|
|
44
42
|
Errors: IReadOnlyList_1<System_Internal.String>;
|
|
45
43
|
Name: string;
|
|
46
44
|
Path: string;
|
|
@@ -73,7 +71,7 @@ export interface ValidatableParameterInfo$instance extends IValidatableInfo$inst
|
|
|
73
71
|
readonly __tsonic_iface_Microsoft_Extensions_Validation_IValidatableInfo: never;
|
|
74
72
|
|
|
75
73
|
GetValidationAttributes(): ValidationAttribute[];
|
|
76
|
-
ValidateAsync(value: unknown, context: ValidateContext, cancellationToken: CancellationToken): Task;
|
|
74
|
+
ValidateAsync(value: unknown | null, context: ValidateContext, cancellationToken: CancellationToken): Task;
|
|
77
75
|
}
|
|
78
76
|
|
|
79
77
|
|
|
@@ -94,7 +92,7 @@ export interface ValidatablePropertyInfo$instance extends IValidatableInfo$insta
|
|
|
94
92
|
readonly __tsonic_iface_Microsoft_Extensions_Validation_IValidatableInfo: never;
|
|
95
93
|
|
|
96
94
|
GetValidationAttributes(): ValidationAttribute[];
|
|
97
|
-
ValidateAsync(value: unknown, context: ValidateContext, cancellationToken: CancellationToken): Task;
|
|
95
|
+
ValidateAsync(value: unknown | null, context: ValidateContext, cancellationToken: CancellationToken): Task;
|
|
98
96
|
}
|
|
99
97
|
|
|
100
98
|
|
|
@@ -128,7 +126,7 @@ export interface ValidatableTypeInfo$instance extends IValidatableInfo$instance
|
|
|
128
126
|
readonly __tsonic_iface_Microsoft_Extensions_Validation_IValidatableInfo: never;
|
|
129
127
|
|
|
130
128
|
GetValidationAttributes(): ValidationAttribute[];
|
|
131
|
-
ValidateAsync(value: unknown, context: ValidateContext, cancellationToken: CancellationToken): Task;
|
|
129
|
+
ValidateAsync(value: unknown | null, context: ValidateContext, cancellationToken: CancellationToken): Task;
|
|
132
130
|
}
|
|
133
131
|
|
|
134
132
|
|
|
@@ -149,8 +147,8 @@ export interface ValidateContext$instance {
|
|
|
149
147
|
CurrentDepth: int;
|
|
150
148
|
CurrentValidationPath: string;
|
|
151
149
|
ValidationContext: ValidationContext;
|
|
152
|
-
get ValidationErrors(): Dictionary_2<System_Internal.String, string[]> |
|
|
153
|
-
set ValidationErrors(value: Dictionary_2<System_Internal.String, string[]> |
|
|
150
|
+
get ValidationErrors(): Dictionary_2<System_Internal.String, string[]> | null;
|
|
151
|
+
set ValidationErrors(value: Dictionary_2<System_Internal.String, string[]> | null);
|
|
154
152
|
ValidationOptions: ValidationOptions;
|
|
155
153
|
}
|
|
156
154
|
|
|
@@ -167,8 +165,8 @@ export interface ValidationOptions$instance {
|
|
|
167
165
|
|
|
168
166
|
MaxDepth: int;
|
|
169
167
|
readonly Resolvers: IList_1<IValidatableInfoResolver>;
|
|
170
|
-
TryGetValidatableParameterInfo(parameterInfo: ParameterInfo, validatableInfo: IValidatableInfo): boolean;
|
|
171
|
-
TryGetValidatableTypeInfo(type: Type, validatableTypeInfo: IValidatableInfo): boolean;
|
|
168
|
+
TryGetValidatableParameterInfo(parameterInfo: ParameterInfo, validatableInfo: IValidatableInfo | null): boolean;
|
|
169
|
+
TryGetValidatableTypeInfo(type: Type, validatableTypeInfo: IValidatableInfo | null): boolean;
|
|
172
170
|
}
|
|
173
171
|
|
|
174
172
|
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
// Import internal declarations
|
|
6
6
|
import * as Internal from './Microsoft.Extensions.Validation/internal/index.js';
|
|
7
7
|
|
|
8
|
+
// Core type aliases from @tsonic/core
|
|
9
|
+
import type { fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
10
|
+
|
|
11
|
+
|
|
8
12
|
// Cross-namespace type imports for constraints
|
|
9
13
|
import type { Dictionary, IList, IReadOnlyList } from '@tsonic/dotnet/System.Collections.Generic.js';
|
|
10
14
|
import type { ValidationAttribute, ValidationContext } from '@tsonic/dotnet/System.ComponentModel.DataAnnotations.js';
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
// Namespace: Microsoft.Extensions.WebEncoders
|
|
3
3
|
// Assembly: Microsoft.Extensions.WebEncoders
|
|
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 { 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 type { TextEncoderSettings } from "@tsonic/dotnet/System.Text.Encodings.Web/internal/index.js";
|
|
@@ -13,8 +14,8 @@ import type { Object as ClrObject } from "@tsonic/dotnet/System/internal/index.j
|
|
|
13
14
|
export interface WebEncoderOptions$instance {
|
|
14
15
|
readonly __tsonic_type_Microsoft_Extensions_WebEncoders_WebEncoderOptions: never;
|
|
15
16
|
|
|
16
|
-
get TextEncoderSettings(): TextEncoderSettings |
|
|
17
|
-
set TextEncoderSettings(value: TextEncoderSettings |
|
|
17
|
+
get TextEncoderSettings(): TextEncoderSettings | null;
|
|
18
|
+
set TextEncoderSettings(value: TextEncoderSettings | null);
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
|
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
// Namespace: Microsoft.Extensions.WebEncoders.Testing
|
|
3
3
|
// Assembly: Microsoft.Extensions.WebEncoders
|
|
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 { 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 * as System_Internal from "@tsonic/dotnet/System/internal/index.js";
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
// Import internal declarations
|
|
6
6
|
import * as Internal from './Microsoft.Extensions.WebEncoders.Testing/internal/index.js';
|
|
7
7
|
|
|
8
|
+
// Core type aliases from @tsonic/core
|
|
9
|
+
import type { fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
10
|
+
|
|
11
|
+
|
|
8
12
|
// Cross-namespace type imports for constraints
|
|
9
13
|
import type { TextWriter } from '@tsonic/dotnet/System.IO.js';
|
|
10
14
|
import type { Boolean as ClrBoolean, Char, Int32, String as ClrString, Void } from '@tsonic/dotnet/System.js';
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
// Import internal declarations
|
|
6
6
|
import * as Internal from './Microsoft.Extensions.WebEncoders/internal/index.js';
|
|
7
7
|
|
|
8
|
+
// Core type aliases from @tsonic/core
|
|
9
|
+
import type { fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
10
|
+
|
|
11
|
+
|
|
8
12
|
// Cross-namespace type imports for constraints
|
|
9
13
|
import type { Object as ClrObject } from '@tsonic/dotnet/System.js';
|
|
10
14
|
import type { TextEncoderSettings } from '@tsonic/dotnet/System.Text.Encodings.Web.js';
|
package/README.md
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
# @tsonic/microsoft-extensions
|
|
2
2
|
|
|
3
|
-
TypeScript
|
|
3
|
+
TypeScript declarations and CLR binding metadata for the .NET 10
|
|
4
|
+
`Microsoft.Extensions.*` stack.
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
This generated package covers dependency injection, hosting, logging,
|
|
7
|
+
configuration, options, file providers, primitives, and related extension
|
|
8
|
+
assemblies. Tsonic uses it as the type and metadata package for real CLR
|
|
9
|
+
assemblies supplied by a framework reference or NuGet package.
|
|
6
10
|
|
|
7
|
-
##
|
|
8
|
-
|
|
9
|
-
- ✅ TypeScript bindings (`.d.ts`) for `Microsoft.Extensions.*` namespaces.
|
|
10
|
-
- ❌ Not a JavaScript runtime implementation (the `.js` files are module stubs for type-only use).
|
|
11
|
-
- ✅ The real assemblies typically come from the **`Microsoft.AspNetCore.App` shared framework** (or equivalent NuGet packages).
|
|
12
|
-
|
|
13
|
-
## Install (types)
|
|
11
|
+
## Install
|
|
14
12
|
|
|
15
13
|
```bash
|
|
16
14
|
npm install @tsonic/microsoft-extensions @tsonic/dotnet @tsonic/core
|
|
@@ -18,23 +16,26 @@ npm install @tsonic/microsoft-extensions @tsonic/dotnet @tsonic/core
|
|
|
18
16
|
|
|
19
17
|
## Use with Tsonic
|
|
20
18
|
|
|
21
|
-
###
|
|
19
|
+
### Shared framework
|
|
22
20
|
|
|
23
21
|
```bash
|
|
24
22
|
tsonic add framework Microsoft.AspNetCore.App @tsonic/microsoft-extensions
|
|
23
|
+
tsonic restore
|
|
25
24
|
```
|
|
26
25
|
|
|
27
|
-
###
|
|
26
|
+
### NuGet packages
|
|
28
27
|
|
|
29
|
-
|
|
28
|
+
Add the specific extension packages you use and bind them to this type package:
|
|
30
29
|
|
|
31
30
|
```bash
|
|
32
31
|
tsonic add nuget Microsoft.Extensions.DependencyInjection <version> @tsonic/microsoft-extensions
|
|
32
|
+
tsonic add nuget Microsoft.Extensions.Logging <version> @tsonic/microsoft-extensions
|
|
33
|
+
tsonic restore
|
|
33
34
|
```
|
|
34
35
|
|
|
35
36
|
## Imports
|
|
36
37
|
|
|
37
|
-
Import
|
|
38
|
+
Import namespace facades through explicit ESM subpaths:
|
|
38
39
|
|
|
39
40
|
```ts
|
|
40
41
|
import { ServiceCollection } from "@tsonic/microsoft-extensions/Microsoft.Extensions.DependencyInjection.js";
|
|
@@ -47,16 +48,53 @@ import { ServiceCollection } from "@tsonic/microsoft-extensions/Microsoft.Extens
|
|
|
47
48
|
|
|
48
49
|
export function main(): void {
|
|
49
50
|
const services = new ServiceCollection();
|
|
50
|
-
|
|
51
|
+
void services;
|
|
51
52
|
}
|
|
52
53
|
```
|
|
53
54
|
|
|
55
|
+
## Package shape
|
|
56
|
+
|
|
57
|
+
The package contains generated namespace facades, ESM stubs, internal
|
|
58
|
+
declarations, extension buckets, and `bindings.json` compiler metadata:
|
|
59
|
+
|
|
60
|
+
```text
|
|
61
|
+
@tsonic/microsoft-extensions/
|
|
62
|
+
Microsoft.Extensions.DependencyInjection.d.ts
|
|
63
|
+
Microsoft.Extensions.DependencyInjection.js
|
|
64
|
+
Microsoft.Extensions.DependencyInjection/
|
|
65
|
+
bindings.json
|
|
66
|
+
internal/index.d.ts
|
|
67
|
+
__internal/extensions/index.d.ts
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
The `bindings.json` files preserve CLR identity, overloads, receiver semantics,
|
|
71
|
+
extension methods, nullable/reference metadata, and generic constraints.
|
|
72
|
+
|
|
73
|
+
## Broad CLR values
|
|
74
|
+
|
|
75
|
+
Generated CLR object slots are represented with TypeScript `unknown`, not a
|
|
76
|
+
package-specific catch-all value. Dependency injection, configuration, logging,
|
|
77
|
+
and options APIs frequently expose broad CLR values; user code narrows those
|
|
78
|
+
values explicitly before member access. Value-type constraints are represented
|
|
79
|
+
with `NonNullable<unknown>`.
|
|
80
|
+
|
|
54
81
|
## Versioning
|
|
55
82
|
|
|
56
|
-
This repo is versioned by
|
|
83
|
+
This repo is versioned by .NET major:
|
|
57
84
|
|
|
58
85
|
- .NET 10 → npm: `@tsonic/microsoft-extensions@10.x`
|
|
59
86
|
|
|
87
|
+
## Development
|
|
88
|
+
|
|
89
|
+
Regenerate from sibling checkouts:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
npm install
|
|
93
|
+
./__build/scripts/generate.sh
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
The generation script requires .NET 10, `../tsbindgen`, and `../dotnet`.
|
|
97
|
+
|
|
60
98
|
## License
|
|
61
99
|
|
|
62
100
|
MIT
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
// Namespace: System.Diagnostics
|
|
3
3
|
// Assembly: System.Diagnostics.DiagnosticSource, System.Diagnostics.EventLog, System.Diagnostics.FileVersionInfo, System.Diagnostics.Process, System.Diagnostics.TextWriterTraceListener, System.Diagnostics.TraceSource, 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 { 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_Collections_Internal from "@tsonic/dotnet/System.Collections/internal/index.js";
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
// Namespace: System.Diagnostics.Eventing.Reader
|
|
3
3
|
// Assembly: System.Diagnostics.EventLog
|
|
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 { 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 type { IEnumerable_1, IList_1 } from "@tsonic/dotnet/System.Collections.Generic/internal/index.js";
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
// Import internal declarations
|
|
6
6
|
import * as Internal from './System.Diagnostics.Eventing.Reader/internal/index.js';
|
|
7
7
|
|
|
8
|
+
// Core type aliases from @tsonic/core
|
|
9
|
+
import type { fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
10
|
+
|
|
11
|
+
|
|
8
12
|
// Cross-namespace type imports for constraints
|
|
9
13
|
import type { IEnumerable, IList } from '@tsonic/dotnet/System.Collections.Generic.js';
|
|
10
14
|
import type { CultureInfo } from '@tsonic/dotnet/System.Globalization.js';
|
package/System.Diagnostics.d.ts
CHANGED
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
// Import internal declarations
|
|
6
6
|
import * as Internal from './System.Diagnostics/internal/index.js';
|
|
7
7
|
|
|
8
|
+
// Core type aliases from @tsonic/core
|
|
9
|
+
import type { fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
10
|
+
|
|
11
|
+
|
|
8
12
|
// Cross-namespace type imports for constraints
|
|
9
13
|
import type { ICollection, IEnumerable, IEnumerator } from '@tsonic/dotnet/System.Collections.js';
|
|
10
14
|
import type { Component, IComponent, ISupportInitialize, ISynchronizeInvoke } from '@tsonic/dotnet/System.ComponentModel.js';
|