@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.
Files changed (114) hide show
  1. package/Microsoft.Extensions.Caching.Distributed/internal/index.d.ts +11 -10
  2. package/Microsoft.Extensions.Caching.Distributed.d.ts +4 -0
  3. package/Microsoft.Extensions.Caching.Hybrid/internal/index.d.ts +12 -14
  4. package/Microsoft.Extensions.Caching.Hybrid.d.ts +5 -1
  5. package/Microsoft.Extensions.Caching.Memory/internal/index.d.ts +32 -34
  6. package/Microsoft.Extensions.Caching.Memory.d.ts +4 -0
  7. package/Microsoft.Extensions.Configuration/internal/index.d.ts +72 -74
  8. package/Microsoft.Extensions.Configuration.CommandLine/internal/index.d.ts +7 -6
  9. package/Microsoft.Extensions.Configuration.CommandLine.d.ts +4 -0
  10. package/Microsoft.Extensions.Configuration.EnvironmentVariables/internal/index.d.ts +7 -6
  11. package/Microsoft.Extensions.Configuration.EnvironmentVariables.d.ts +4 -0
  12. package/Microsoft.Extensions.Configuration.Ini/internal/index.d.ts +6 -5
  13. package/Microsoft.Extensions.Configuration.Ini.d.ts +4 -0
  14. package/Microsoft.Extensions.Configuration.Json/internal/index.d.ts +5 -4
  15. package/Microsoft.Extensions.Configuration.Json.d.ts +4 -0
  16. package/Microsoft.Extensions.Configuration.KeyPerFile/internal/index.d.ts +6 -5
  17. package/Microsoft.Extensions.Configuration.KeyPerFile.d.ts +4 -0
  18. package/Microsoft.Extensions.Configuration.Memory/internal/index.d.ts +6 -5
  19. package/Microsoft.Extensions.Configuration.Memory.d.ts +4 -0
  20. package/Microsoft.Extensions.Configuration.UserSecrets/internal/index.d.ts +3 -2
  21. package/Microsoft.Extensions.Configuration.UserSecrets.d.ts +4 -0
  22. package/Microsoft.Extensions.Configuration.Xml/internal/index.d.ts +7 -6
  23. package/Microsoft.Extensions.Configuration.Xml.d.ts +4 -0
  24. package/Microsoft.Extensions.Configuration.d.ts +4 -0
  25. package/Microsoft.Extensions.DependencyInjection/internal/index.d.ts +132 -131
  26. package/Microsoft.Extensions.DependencyInjection.Extensions/internal/index.d.ts +29 -28
  27. package/Microsoft.Extensions.DependencyInjection.Extensions.d.ts +4 -0
  28. package/Microsoft.Extensions.DependencyInjection.d.ts +7 -3
  29. package/Microsoft.Extensions.Diagnostics.HealthChecks/internal/index.d.ts +20 -19
  30. package/Microsoft.Extensions.Diagnostics.HealthChecks.d.ts +4 -0
  31. package/Microsoft.Extensions.Diagnostics.Metrics/internal/index.d.ts +31 -33
  32. package/Microsoft.Extensions.Diagnostics.Metrics.Configuration/internal/index.d.ts +3 -2
  33. package/Microsoft.Extensions.Diagnostics.Metrics.Configuration.d.ts +4 -0
  34. package/Microsoft.Extensions.Diagnostics.Metrics.d.ts +4 -0
  35. package/Microsoft.Extensions.FileProviders/internal/index.d.ts +6 -5
  36. package/Microsoft.Extensions.FileProviders.Composite/internal/index.d.ts +3 -2
  37. package/Microsoft.Extensions.FileProviders.Composite.d.ts +4 -0
  38. package/Microsoft.Extensions.FileProviders.Embedded/internal/index.d.ts +3 -2
  39. package/Microsoft.Extensions.FileProviders.Embedded.d.ts +4 -0
  40. package/Microsoft.Extensions.FileProviders.Internal/internal/index.d.ts +3 -2
  41. package/Microsoft.Extensions.FileProviders.Internal.d.ts +4 -0
  42. package/Microsoft.Extensions.FileProviders.Physical/internal/index.d.ts +6 -5
  43. package/Microsoft.Extensions.FileProviders.Physical.d.ts +4 -0
  44. package/Microsoft.Extensions.FileProviders.d.ts +4 -0
  45. package/Microsoft.Extensions.FileSystemGlobbing/internal/index.d.ts +9 -8
  46. package/Microsoft.Extensions.FileSystemGlobbing.Abstractions/internal/index.d.ts +9 -8
  47. package/Microsoft.Extensions.FileSystemGlobbing.Abstractions.d.ts +4 -0
  48. package/Microsoft.Extensions.FileSystemGlobbing.Internal/internal/index.d.ts +5 -4
  49. package/Microsoft.Extensions.FileSystemGlobbing.Internal.PathSegments/internal/index.d.ts +4 -3
  50. package/Microsoft.Extensions.FileSystemGlobbing.Internal.PathSegments.d.ts +4 -0
  51. package/Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts/bindings.json +230 -230
  52. package/Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts/internal/index.d.ts +50 -49
  53. package/Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts.d.ts +6 -2
  54. package/Microsoft.Extensions.FileSystemGlobbing.Internal.Patterns/internal/index.d.ts +3 -2
  55. package/Microsoft.Extensions.FileSystemGlobbing.Internal.Patterns.d.ts +4 -0
  56. package/Microsoft.Extensions.FileSystemGlobbing.Internal.d.ts +4 -0
  57. package/Microsoft.Extensions.FileSystemGlobbing.d.ts +4 -0
  58. package/Microsoft.Extensions.Hosting/internal/index.d.ts +31 -30
  59. package/Microsoft.Extensions.Hosting.Internal/internal/index.d.ts +3 -2
  60. package/Microsoft.Extensions.Hosting.Internal.d.ts +4 -0
  61. package/Microsoft.Extensions.Hosting.d.ts +4 -0
  62. package/Microsoft.Extensions.Http/internal/index.d.ts +7 -6
  63. package/Microsoft.Extensions.Http.Logging/internal/index.d.ts +11 -10
  64. package/Microsoft.Extensions.Http.Logging.d.ts +4 -0
  65. package/Microsoft.Extensions.Http.d.ts +5 -1
  66. package/Microsoft.Extensions.Internal/internal/index.d.ts +3 -2
  67. package/Microsoft.Extensions.Internal.d.ts +4 -0
  68. package/Microsoft.Extensions.Localization/internal/index.d.ts +18 -17
  69. package/Microsoft.Extensions.Localization.d.ts +6 -2
  70. package/Microsoft.Extensions.Logging/internal/index.d.ts +91 -88
  71. package/Microsoft.Extensions.Logging.Abstractions/bindings.json +4 -1
  72. package/Microsoft.Extensions.Logging.Abstractions/internal/index.d.ts +20 -19
  73. package/Microsoft.Extensions.Logging.Abstractions.d.ts +6 -2
  74. package/Microsoft.Extensions.Logging.Configuration/internal/index.d.ts +10 -9
  75. package/Microsoft.Extensions.Logging.Configuration.d.ts +5 -1
  76. package/Microsoft.Extensions.Logging.Console/internal/index.d.ts +15 -17
  77. package/Microsoft.Extensions.Logging.Console.d.ts +4 -0
  78. package/Microsoft.Extensions.Logging.Debug/internal/index.d.ts +3 -2
  79. package/Microsoft.Extensions.Logging.Debug.d.ts +4 -0
  80. package/Microsoft.Extensions.Logging.EventLog/internal/index.d.ts +12 -11
  81. package/Microsoft.Extensions.Logging.EventLog.d.ts +4 -0
  82. package/Microsoft.Extensions.Logging.EventSource/internal/index.d.ts +3 -2
  83. package/Microsoft.Extensions.Logging.EventSource.d.ts +4 -0
  84. package/Microsoft.Extensions.Logging.TraceSource/internal/index.d.ts +4 -3
  85. package/Microsoft.Extensions.Logging.TraceSource.d.ts +4 -0
  86. package/Microsoft.Extensions.Logging.d.ts +6 -2
  87. package/Microsoft.Extensions.ObjectPool/internal/index.d.ts +31 -30
  88. package/Microsoft.Extensions.ObjectPool.d.ts +7 -3
  89. package/Microsoft.Extensions.Options/internal/index.d.ts +239 -238
  90. package/Microsoft.Extensions.Options.d.ts +50 -46
  91. package/Microsoft.Extensions.Primitives/internal/index.d.ts +30 -32
  92. package/Microsoft.Extensions.Primitives.d.ts +5 -1
  93. package/Microsoft.Extensions.Validation/internal/index.d.ts +14 -16
  94. package/Microsoft.Extensions.Validation.d.ts +4 -0
  95. package/Microsoft.Extensions.WebEncoders/internal/index.d.ts +5 -4
  96. package/Microsoft.Extensions.WebEncoders.Testing/internal/index.d.ts +2 -4
  97. package/Microsoft.Extensions.WebEncoders.Testing.d.ts +4 -0
  98. package/Microsoft.Extensions.WebEncoders.d.ts +4 -0
  99. package/README.md +53 -15
  100. package/System.Diagnostics/internal/index.d.ts +3 -2
  101. package/System.Diagnostics.Eventing.Reader/internal/index.d.ts +3 -2
  102. package/System.Diagnostics.Eventing.Reader.d.ts +4 -0
  103. package/System.Diagnostics.d.ts +4 -0
  104. package/System.Net.Http/internal/index.d.ts +3 -2
  105. package/System.Net.Http.d.ts +4 -0
  106. package/System.Security.Cryptography/internal/index.d.ts +4 -3
  107. package/System.Security.Cryptography.Pkcs/internal/index.d.ts +44 -46
  108. package/System.Security.Cryptography.Pkcs.d.ts +4 -0
  109. package/System.Security.Cryptography.Xml/bindings.json +404 -404
  110. package/System.Security.Cryptography.Xml/internal/index.d.ts +117 -119
  111. package/System.Security.Cryptography.Xml.d.ts +4 -0
  112. package/System.Security.Cryptography.d.ts +4 -0
  113. package/__internal/extensions/index.d.ts +212 -214
  114. package/package.json +3 -3
@@ -2,8 +2,9 @@
2
2
  // Namespace: Microsoft.Extensions.DependencyInjection
3
3
  // Assembly: Microsoft.Extensions.Caching.Memory, Microsoft.Extensions.DependencyInjection, Microsoft.Extensions.DependencyInjection.Abstractions, Microsoft.Extensions.Diagnostics, Microsoft.Extensions.Diagnostics.HealthChecks, Microsoft.Extensions.Hosting.Abstractions, Microsoft.Extensions.Http, Microsoft.Extensions.Localization, Microsoft.Extensions.Logging, Microsoft.Extensions.Options, Microsoft.Extensions.Options.ConfigurationExtensions, Microsoft.Extensions.Options.DataAnnotations, Microsoft.Extensions.Validation, Microsoft.Extensions.WebEncoders
4
4
 
5
- // Primitive type aliases from @tsonic/core
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
5
+ // Core type aliases from @tsonic/core
6
+ import type { 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 { MemoryCacheOptions, MemoryDistributedCacheOptions } from "../../Microsoft.Extensions.Caching.Memory/internal/index.js";
@@ -44,10 +45,10 @@ export enum ServiceLifetime {
44
45
  }
45
46
 
46
47
 
47
- export type ObjectFactory = (serviceProvider: IServiceProvider, arguments: unknown[]) => unknown;
48
+ export type ObjectFactory = (serviceProvider: IServiceProvider, arguments: (unknown | null)[] | null) => unknown;
48
49
 
49
50
 
50
- export type ObjectFactory_1<T> = (serviceProvider: IServiceProvider, arguments: unknown[]) => T;
51
+ export type ObjectFactory_1<T extends unknown> = (serviceProvider: IServiceProvider, arguments: (unknown | null)[] | null) => T;
51
52
 
52
53
 
53
54
  export interface IHealthChecksBuilder$instance {
@@ -73,7 +74,7 @@ export type IHttpClientBuilder = IHttpClientBuilder$instance;
73
74
  export interface IKeyedServiceProvider$instance extends IServiceProvider {
74
75
  readonly __tsonic_iface_Microsoft_Extensions_DependencyInjection_IKeyedServiceProvider: never;
75
76
 
76
- GetKeyedService(serviceType: Type, serviceKey: unknown): unknown | undefined;
77
+ GetKeyedService(serviceType: Type, serviceKey: unknown | null): unknown | null;
77
78
  }
78
79
 
79
80
 
@@ -91,7 +92,7 @@ export interface IServiceCollection$instance extends System_Collections_Generic_
91
92
 
92
93
  export type IServiceCollection = IServiceCollection$instance;
93
94
 
94
- export interface IServiceProviderFactory_1$instance<TContainerBuilder> {
95
+ export interface IServiceProviderFactory_1$instance<TContainerBuilder extends unknown> {
95
96
  readonly __tsonic_iface_Microsoft_Extensions_DependencyInjection_IServiceProviderFactory_1: never;
96
97
 
97
98
  CreateBuilder(services: IServiceCollection): TContainerBuilder;
@@ -99,12 +100,12 @@ export interface IServiceProviderFactory_1$instance<TContainerBuilder> {
99
100
  }
100
101
 
101
102
 
102
- export type IServiceProviderFactory_1<TContainerBuilder> = IServiceProviderFactory_1$instance<TContainerBuilder>;
103
+ export type IServiceProviderFactory_1<TContainerBuilder extends unknown> = IServiceProviderFactory_1$instance<TContainerBuilder>;
103
104
 
104
105
  export interface IServiceProviderIsKeyedService$instance extends IServiceProviderIsService {
105
106
  readonly __tsonic_iface_Microsoft_Extensions_DependencyInjection_IServiceProviderIsKeyedService: never;
106
107
 
107
- IsKeyedService(serviceType: Type, serviceKey: unknown): boolean;
108
+ IsKeyedService(serviceType: Type, serviceKey: unknown | null): boolean;
108
109
  IsService(serviceType: Type): boolean;
109
110
  }
110
111
 
@@ -225,13 +226,13 @@ export type DefaultServiceProviderFactory = DefaultServiceProviderFactory$instan
225
226
  export interface FromKeyedServicesAttribute$instance extends Attribute {
226
227
  readonly __tsonic_type_Microsoft_Extensions_DependencyInjection_FromKeyedServicesAttribute: never;
227
228
 
228
- readonly Key: unknown | undefined;
229
+ readonly Key: unknown | null;
229
230
  readonly LookupMode: ServiceKeyLookupMode;
230
231
  }
231
232
 
232
233
 
233
234
  export const FromKeyedServicesAttribute: {
234
- new(key: unknown): FromKeyedServicesAttribute;
235
+ new(key: unknown | null): FromKeyedServicesAttribute;
235
236
  new(): FromKeyedServicesAttribute;
236
237
  };
237
238
 
@@ -271,15 +272,15 @@ export type ServiceCollection = ServiceCollection$instance & { [index: number]:
271
272
  export interface ServiceDescriptor$instance {
272
273
  readonly __tsonic_type_Microsoft_Extensions_DependencyInjection_ServiceDescriptor: never;
273
274
 
274
- readonly ImplementationFactory: Func_2<IServiceProvider, unknown> | undefined;
275
- readonly ImplementationInstance: unknown | undefined;
276
- readonly ImplementationType: Type | undefined;
275
+ readonly ImplementationFactory: Func_2<IServiceProvider, unknown> | null;
276
+ readonly ImplementationInstance: unknown | null;
277
+ readonly ImplementationType: Type | null;
277
278
  readonly IsKeyedService: boolean;
278
- readonly KeyedImplementationFactory: Func_3<IServiceProvider, unknown | undefined, unknown> | undefined;
279
- readonly KeyedImplementationInstance: unknown | undefined;
280
- readonly KeyedImplementationType: Type | undefined;
279
+ readonly KeyedImplementationFactory: Func_3<IServiceProvider, unknown | null, unknown> | null;
280
+ readonly KeyedImplementationInstance: unknown | null;
281
+ readonly KeyedImplementationType: Type | null;
281
282
  readonly Lifetime: ServiceLifetime;
282
- readonly ServiceKey: unknown | undefined;
283
+ readonly ServiceKey: unknown | null;
283
284
  readonly ServiceType: Type;
284
285
  ToString(): string;
285
286
  }
@@ -287,41 +288,41 @@ export interface ServiceDescriptor$instance {
287
288
 
288
289
  export const ServiceDescriptor: {
289
290
  new(serviceType: Type, implementationType: Type, lifetime: ServiceLifetime): ServiceDescriptor;
290
- new(serviceType: Type, serviceKey: unknown, implementationType: Type, lifetime: ServiceLifetime): ServiceDescriptor;
291
+ new(serviceType: Type, serviceKey: unknown | null, implementationType: Type, lifetime: ServiceLifetime): ServiceDescriptor;
291
292
  new(serviceType: Type, instance: unknown): ServiceDescriptor;
292
- new(serviceType: Type, serviceKey: unknown, instance: unknown): ServiceDescriptor;
293
+ new(serviceType: Type, serviceKey: unknown | null, instance: unknown): ServiceDescriptor;
293
294
  new(serviceType: Type, factory: Func_2<IServiceProvider, unknown>, lifetime: ServiceLifetime): ServiceDescriptor;
294
- new(serviceType: Type, serviceKey: unknown, factory: Func_3<IServiceProvider, unknown, unknown>, lifetime: ServiceLifetime): ServiceDescriptor;
295
+ new(serviceType: Type, serviceKey: unknown | null, factory: Func_3<IServiceProvider, unknown | null, unknown>, lifetime: ServiceLifetime): ServiceDescriptor;
295
296
  Describe(serviceType: Type, implementationFactory: Func_2<IServiceProvider, unknown>, lifetime: ServiceLifetime): ServiceDescriptor;
296
297
  Describe(serviceType: Type, implementationType: Type, lifetime: ServiceLifetime): ServiceDescriptor;
297
- DescribeKeyed(serviceType: Type, serviceKey: unknown, implementationFactory: Func_3<IServiceProvider, unknown, unknown>, lifetime: ServiceLifetime): ServiceDescriptor;
298
- DescribeKeyed(serviceType: Type, serviceKey: unknown, implementationType: Type, lifetime: ServiceLifetime): ServiceDescriptor;
299
- KeyedScoped<TService, TImplementation extends TService>(serviceKey: unknown, implementationFactory: Func_3<IServiceProvider, unknown, TImplementation>): ServiceDescriptor;
300
- KeyedScoped<TService, TImplementation extends TService>(serviceKey: unknown): ServiceDescriptor;
301
- KeyedScoped(service: Type, serviceKey: unknown, implementationFactory: Func_3<IServiceProvider, unknown, unknown>): ServiceDescriptor;
302
- KeyedScoped(service: Type, serviceKey: unknown, implementationType: Type): ServiceDescriptor;
303
- KeyedSingleton<TService, TImplementation extends TService>(serviceKey: unknown, implementationFactory: Func_3<IServiceProvider, unknown, TImplementation>): ServiceDescriptor;
304
- KeyedSingleton<TService>(serviceKey: unknown, implementationInstance: TService): ServiceDescriptor;
305
- KeyedSingleton<TService, TImplementation extends TService>(serviceKey: unknown): ServiceDescriptor;
306
- KeyedSingleton(serviceType: Type, serviceKey: unknown, implementationFactory: Func_3<IServiceProvider, unknown, unknown>): ServiceDescriptor;
307
- KeyedSingleton(serviceType: Type, serviceKey: unknown, implementationInstance: unknown): ServiceDescriptor;
308
- KeyedSingleton(service: Type, serviceKey: unknown, implementationType: Type): ServiceDescriptor;
309
- KeyedTransient<TService, TImplementation extends TService>(serviceKey: unknown, implementationFactory: Func_3<IServiceProvider, unknown, TImplementation>): ServiceDescriptor;
310
- KeyedTransient<TService, TImplementation extends TService>(serviceKey: unknown): ServiceDescriptor;
311
- KeyedTransient(service: Type, serviceKey: unknown, implementationFactory: Func_3<IServiceProvider, unknown, unknown>): ServiceDescriptor;
312
- KeyedTransient(service: Type, serviceKey: unknown, implementationType: Type): ServiceDescriptor;
313
- Scoped<TService, TImplementation extends TService>(): ServiceDescriptor;
314
- Scoped<TService, TImplementation extends TService>(implementationFactory: Func_2<IServiceProvider, TImplementation>): ServiceDescriptor;
298
+ DescribeKeyed(serviceType: Type, serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, unknown>, lifetime: ServiceLifetime): ServiceDescriptor;
299
+ DescribeKeyed(serviceType: Type, serviceKey: unknown | null, implementationType: Type, lifetime: ServiceLifetime): ServiceDescriptor;
300
+ KeyedScoped<TService extends (object | null), TImplementation extends (object | null) & TService>(serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, TImplementation>): ServiceDescriptor;
301
+ KeyedScoped<TService extends (object | null), TImplementation extends (object | null) & TService>(serviceKey: unknown | null): ServiceDescriptor;
302
+ KeyedScoped(service: Type, serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, unknown>): ServiceDescriptor;
303
+ KeyedScoped(service: Type, serviceKey: unknown | null, implementationType: Type): ServiceDescriptor;
304
+ KeyedSingleton<TService extends (object | null), TImplementation extends (object | null) & TService>(serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, TImplementation>): ServiceDescriptor;
305
+ KeyedSingleton<TService extends (object | null)>(serviceKey: unknown | null, implementationInstance: TService): ServiceDescriptor;
306
+ KeyedSingleton<TService extends (object | null), TImplementation extends (object | null) & TService>(serviceKey: unknown | null): ServiceDescriptor;
307
+ KeyedSingleton(serviceType: Type, serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, unknown>): ServiceDescriptor;
308
+ KeyedSingleton(serviceType: Type, serviceKey: unknown | null, implementationInstance: unknown): ServiceDescriptor;
309
+ KeyedSingleton(service: Type, serviceKey: unknown | null, implementationType: Type): ServiceDescriptor;
310
+ KeyedTransient<TService extends (object | null), TImplementation extends (object | null) & TService>(serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, TImplementation>): ServiceDescriptor;
311
+ KeyedTransient<TService extends (object | null), TImplementation extends (object | null) & TService>(serviceKey: unknown | null): ServiceDescriptor;
312
+ KeyedTransient(service: Type, serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, unknown>): ServiceDescriptor;
313
+ KeyedTransient(service: Type, serviceKey: unknown | null, implementationType: Type): ServiceDescriptor;
314
+ Scoped<TService extends (object | null), TImplementation extends (object | null) & TService>(): ServiceDescriptor;
315
+ Scoped<TService extends (object | null), TImplementation extends (object | null) & TService>(implementationFactory: Func_2<IServiceProvider, TImplementation>): ServiceDescriptor;
315
316
  Scoped(service: Type, implementationFactory: Func_2<IServiceProvider, unknown>): ServiceDescriptor;
316
317
  Scoped(service: Type, implementationType: Type): ServiceDescriptor;
317
- Singleton<TService, TImplementation extends TService>(): ServiceDescriptor;
318
- Singleton<TService, TImplementation extends TService>(implementationFactory: Func_2<IServiceProvider, TImplementation>): ServiceDescriptor;
318
+ Singleton<TService extends (object | null), TImplementation extends (object | null) & TService>(): ServiceDescriptor;
319
+ Singleton<TService extends (object | null), TImplementation extends (object | null) & TService>(implementationFactory: Func_2<IServiceProvider, TImplementation>): ServiceDescriptor;
319
320
  Singleton(serviceType: Type, implementationFactory: Func_2<IServiceProvider, unknown>): ServiceDescriptor;
320
321
  Singleton(serviceType: Type, implementationInstance: unknown): ServiceDescriptor;
321
322
  Singleton(service: Type, implementationType: Type): ServiceDescriptor;
322
- Singleton<TService>(implementationInstance: TService): ServiceDescriptor;
323
- Transient<TService, TImplementation extends TService>(): ServiceDescriptor;
324
- Transient<TService, TImplementation extends TService>(implementationFactory: Func_2<IServiceProvider, TImplementation>): ServiceDescriptor;
323
+ Singleton<TService extends (object | null)>(implementationInstance: TService): ServiceDescriptor;
324
+ Transient<TService extends (object | null), TImplementation extends (object | null) & TService>(): ServiceDescriptor;
325
+ Transient<TService extends (object | null), TImplementation extends (object | null) & TService>(implementationFactory: Func_2<IServiceProvider, TImplementation>): ServiceDescriptor;
325
326
  Transient(service: Type, implementationFactory: Func_2<IServiceProvider, unknown>): ServiceDescriptor;
326
327
  Transient(service: Type, implementationType: Type): ServiceDescriptor;
327
328
  };
@@ -352,9 +353,9 @@ export interface ServiceProvider$instance extends IKeyedServiceProvider$instance
352
353
 
353
354
  Dispose(): void;
354
355
  DisposeAsync(): ValueTask;
355
- GetKeyedService(serviceType: Type, serviceKey: unknown): unknown | undefined;
356
- GetRequiredKeyedService(serviceType: Type, serviceKey: unknown): unknown;
357
- GetService(serviceType: Type): unknown | undefined;
356
+ GetKeyedService(serviceType: Type, serviceKey: unknown | null): unknown | null;
357
+ GetRequiredKeyedService(serviceType: Type, serviceKey: unknown | null): unknown;
358
+ GetService(serviceType: Type): unknown | null;
358
359
  }
359
360
 
360
361
 
@@ -386,11 +387,11 @@ export type ServiceProviderOptions = ServiceProviderOptions$instance;
386
387
 
387
388
  export abstract class ActivatorUtilities$instance {
388
389
  static CreateFactory(instanceType: Type, argumentTypes: Type[]): ObjectFactory;
389
- static CreateFactory<T>(argumentTypes: Type[]): ObjectFactory_1<T>;
390
- static CreateInstance<T>(provider: IServiceProvider, ...parameters: unknown[]): T;
390
+ static CreateFactory<T extends unknown>(argumentTypes: Type[]): ObjectFactory_1<T>;
391
+ static CreateInstance<T extends unknown>(provider: IServiceProvider, ...parameters: unknown[]): T;
391
392
  static CreateInstance(provider: IServiceProvider, instanceType: Type, ...parameters: unknown[]): unknown;
392
393
  static GetServiceOrCreateInstance(provider: IServiceProvider, type: Type): unknown;
393
- static GetServiceOrCreateInstance<T>(provider: IServiceProvider): T;
394
+ static GetServiceOrCreateInstance<T extends unknown>(provider: IServiceProvider): T;
394
395
  }
395
396
 
396
397
 
@@ -405,28 +406,28 @@ export abstract class EncoderServiceCollectionExtensions$instance {
405
406
  export type EncoderServiceCollectionExtensions = EncoderServiceCollectionExtensions$instance;
406
407
 
407
408
  export abstract class HealthChecksBuilderAddCheckExtensions$instance {
408
- static AddCheck(builder: IHealthChecksBuilder, name: string, instance: IHealthCheck, failureStatus?: Nullable_1<HealthStatus>, tags?: IEnumerable_1<System_Internal.String>, timeout?: Nullable_1<TimeSpan>): IHealthChecksBuilder;
409
+ static AddCheck(builder: IHealthChecksBuilder, name: string, instance: IHealthCheck, failureStatus?: Nullable_1<HealthStatus>, tags?: IEnumerable_1<System_Internal.String> | null, timeout?: Nullable_1<TimeSpan>): IHealthChecksBuilder;
409
410
  static AddCheck(builder: IHealthChecksBuilder, name: string, instance: IHealthCheck, failureStatus: Nullable_1<HealthStatus>, tags: IEnumerable_1<System_Internal.String>): IHealthChecksBuilder;
410
- static AddCheck<T extends IHealthCheck>(builder: IHealthChecksBuilder, name: string, failureStatus?: Nullable_1<HealthStatus>, tags?: IEnumerable_1<System_Internal.String>, timeout?: Nullable_1<TimeSpan>): IHealthChecksBuilder;
411
- static AddCheck<T extends IHealthCheck>(builder: IHealthChecksBuilder, name: string, failureStatus: Nullable_1<HealthStatus>, tags: IEnumerable_1<System_Internal.String>): IHealthChecksBuilder;
412
- static AddTypeActivatedCheck<T extends IHealthCheck>(builder: IHealthChecksBuilder, name: string, failureStatus: Nullable_1<HealthStatus>, tags: IEnumerable_1<System_Internal.String>, ...args: unknown[]): IHealthChecksBuilder;
413
- static AddTypeActivatedCheck<T extends IHealthCheck>(builder: IHealthChecksBuilder, name: string, failureStatus: Nullable_1<HealthStatus>, tags: IEnumerable_1<System_Internal.String>, timeout: TimeSpan, ...args: unknown[]): IHealthChecksBuilder;
414
- static AddTypeActivatedCheck<T extends IHealthCheck>(builder: IHealthChecksBuilder, name: string, failureStatus: Nullable_1<HealthStatus>, ...args: unknown[]): IHealthChecksBuilder;
415
- static AddTypeActivatedCheck<T extends IHealthCheck>(builder: IHealthChecksBuilder, name: string, ...args: unknown[]): IHealthChecksBuilder;
411
+ static AddCheck<T extends (object | null) & IHealthCheck>(builder: IHealthChecksBuilder, name: string, failureStatus?: Nullable_1<HealthStatus>, tags?: IEnumerable_1<System_Internal.String> | null, timeout?: Nullable_1<TimeSpan>): IHealthChecksBuilder;
412
+ static AddCheck<T extends (object | null) & IHealthCheck>(builder: IHealthChecksBuilder, name: string, failureStatus: Nullable_1<HealthStatus>, tags: IEnumerable_1<System_Internal.String>): IHealthChecksBuilder;
413
+ static AddTypeActivatedCheck<T extends (object | null) & IHealthCheck>(builder: IHealthChecksBuilder, name: string, failureStatus: Nullable_1<HealthStatus>, tags: IEnumerable_1<System_Internal.String> | null, ...args: unknown[]): IHealthChecksBuilder;
414
+ static AddTypeActivatedCheck<T extends (object | null) & IHealthCheck>(builder: IHealthChecksBuilder, name: string, failureStatus: Nullable_1<HealthStatus>, tags: IEnumerable_1<System_Internal.String>, timeout: TimeSpan, ...args: unknown[]): IHealthChecksBuilder;
415
+ static AddTypeActivatedCheck<T extends (object | null) & IHealthCheck>(builder: IHealthChecksBuilder, name: string, failureStatus: Nullable_1<HealthStatus>, ...args: unknown[]): IHealthChecksBuilder;
416
+ static AddTypeActivatedCheck<T extends (object | null) & IHealthCheck>(builder: IHealthChecksBuilder, name: string, ...args: unknown[]): IHealthChecksBuilder;
416
417
  }
417
418
 
418
419
 
419
420
  export type HealthChecksBuilderAddCheckExtensions = HealthChecksBuilderAddCheckExtensions$instance;
420
421
 
421
422
  export abstract class HealthChecksBuilderDelegateExtensions$instance {
422
- static AddAsyncCheck(builder: IHealthChecksBuilder, name: string, check: Func_1<Task_1<HealthCheckResult>>, tags?: IEnumerable_1<System_Internal.String>, timeout?: Nullable_1<TimeSpan>): IHealthChecksBuilder;
423
+ static AddAsyncCheck(builder: IHealthChecksBuilder, name: string, check: Func_1<Task_1<HealthCheckResult>>, tags?: IEnumerable_1<System_Internal.String> | null, timeout?: Nullable_1<TimeSpan>): IHealthChecksBuilder;
423
424
  static AddAsyncCheck(builder: IHealthChecksBuilder, name: string, check: Func_1<Task_1<HealthCheckResult>>, tags: IEnumerable_1<System_Internal.String>): IHealthChecksBuilder;
424
- static AddAsyncCheck(builder: IHealthChecksBuilder, name: string, check: Func_2<CancellationToken, Task_1<HealthCheckResult>>, tags?: IEnumerable_1<System_Internal.String>, timeout?: Nullable_1<TimeSpan>): IHealthChecksBuilder;
425
+ static AddAsyncCheck(builder: IHealthChecksBuilder, name: string, check: Func_2<CancellationToken, Task_1<HealthCheckResult>>, tags?: IEnumerable_1<System_Internal.String> | null, timeout?: Nullable_1<TimeSpan>): IHealthChecksBuilder;
425
426
  static AddAsyncCheck(builder: IHealthChecksBuilder, name: string, check: Func_2<CancellationToken, Task_1<HealthCheckResult>>, tags: IEnumerable_1<System_Internal.String>): IHealthChecksBuilder;
426
- static AddCheck(builder: IHealthChecksBuilder, name: string, check: Func_1<HealthCheckResult>, tags?: IEnumerable_1<System_Internal.String>, timeout?: Nullable_1<TimeSpan>): IHealthChecksBuilder;
427
+ static AddCheck(builder: IHealthChecksBuilder, name: string, check: Func_1<HealthCheckResult>, tags?: IEnumerable_1<System_Internal.String> | null, timeout?: Nullable_1<TimeSpan>): IHealthChecksBuilder;
427
428
  static AddCheck(builder: IHealthChecksBuilder, name: string, check: Func_1<HealthCheckResult>, tags: IEnumerable_1<System_Internal.String>): IHealthChecksBuilder;
428
- static AddCheck(builder: IHealthChecksBuilder, name: string, check: Func_2<CancellationToken, HealthCheckResult>, tags?: IEnumerable_1<System_Internal.String>, timeout?: Nullable_1<TimeSpan>): IHealthChecksBuilder;
429
- static AddCheck(builder: IHealthChecksBuilder, name: string, check: Func_2<CancellationToken, HealthCheckResult>, tags: IEnumerable_1<System_Internal.String>): IHealthChecksBuilder;
429
+ static AddCheck(builder: IHealthChecksBuilder, name: string, check: Func_2<CancellationToken, HealthCheckResult>, tags?: IEnumerable_1<System_Internal.String> | null, timeout?: Nullable_1<TimeSpan>): IHealthChecksBuilder;
430
+ static AddCheck(builder: IHealthChecksBuilder, name: string, check: Func_2<CancellationToken, HealthCheckResult>, tags: IEnumerable_1<System_Internal.String> | null): IHealthChecksBuilder;
430
431
  }
431
432
 
432
433
 
@@ -444,12 +445,12 @@ export abstract class HttpClientBuilderExtensions$instance {
444
445
  static AddDefaultLogger(builder: IHttpClientBuilder): IHttpClientBuilder;
445
446
  static AddHttpMessageHandler(builder: IHttpClientBuilder, configureHandler: Func_1<DelegatingHandler>): IHttpClientBuilder;
446
447
  static AddHttpMessageHandler(builder: IHttpClientBuilder, configureHandler: Func_2<IServiceProvider, DelegatingHandler>): IHttpClientBuilder;
447
- static AddHttpMessageHandler<THandler extends DelegatingHandler>(builder: IHttpClientBuilder): IHttpClientBuilder;
448
- static AddLogger<TLogger extends IHttpClientLogger>(builder: IHttpClientBuilder, wrapHandlersPipeline?: boolean): IHttpClientBuilder;
448
+ static AddHttpMessageHandler<THandler extends unknown & DelegatingHandler>(builder: IHttpClientBuilder): IHttpClientBuilder;
449
+ static AddLogger<TLogger extends unknown & IHttpClientLogger>(builder: IHttpClientBuilder, wrapHandlersPipeline?: boolean): IHttpClientBuilder;
449
450
  static AddLogger(builder: IHttpClientBuilder, httpClientLoggerFactory: Func_2<IServiceProvider, IHttpClientLogger>, wrapHandlersPipeline?: boolean): IHttpClientBuilder;
450
- static AddTypedClient<TClient>(builder: IHttpClientBuilder, factory: Func_2<HttpClient, TClient>): IHttpClientBuilder;
451
- static AddTypedClient<TClient>(builder: IHttpClientBuilder, factory: Func_3<HttpClient, IServiceProvider, TClient>): IHttpClientBuilder;
452
- static AddTypedClient<TClient>(builder: IHttpClientBuilder): IHttpClientBuilder;
451
+ static AddTypedClient<TClient extends (object | null)>(builder: IHttpClientBuilder, factory: Func_2<HttpClient, TClient>): IHttpClientBuilder;
452
+ static AddTypedClient<TClient extends (object | null)>(builder: IHttpClientBuilder, factory: Func_3<HttpClient, IServiceProvider, TClient>): IHttpClientBuilder;
453
+ static AddTypedClient<TClient extends (object | null)>(builder: IHttpClientBuilder): IHttpClientBuilder;
453
454
  static ConfigureAdditionalHttpMessageHandlers(builder: IHttpClientBuilder, configureAdditionalHandlers: Action_2<IList_1<DelegatingHandler>, IServiceProvider>): IHttpClientBuilder;
454
455
  static ConfigureHttpClient(builder: IHttpClientBuilder, configureClient: Action_1<HttpClient>): IHttpClientBuilder;
455
456
  static ConfigureHttpClient(builder: IHttpClientBuilder, configureClient: Action_2<IServiceProvider, HttpClient>): IHttpClientBuilder;
@@ -457,30 +458,30 @@ export abstract class HttpClientBuilderExtensions$instance {
457
458
  static ConfigurePrimaryHttpMessageHandler(builder: IHttpClientBuilder, configureHandler: Action_2<HttpMessageHandler, IServiceProvider>): IHttpClientBuilder;
458
459
  static ConfigurePrimaryHttpMessageHandler(builder: IHttpClientBuilder, configureHandler: Func_1<HttpMessageHandler>): IHttpClientBuilder;
459
460
  static ConfigurePrimaryHttpMessageHandler(builder: IHttpClientBuilder, configureHandler: Func_2<IServiceProvider, HttpMessageHandler>): IHttpClientBuilder;
460
- static ConfigurePrimaryHttpMessageHandler<THandler extends HttpMessageHandler>(builder: IHttpClientBuilder): IHttpClientBuilder;
461
+ static ConfigurePrimaryHttpMessageHandler<THandler extends unknown & HttpMessageHandler>(builder: IHttpClientBuilder): IHttpClientBuilder;
461
462
  static RedactLoggedHeaders(builder: IHttpClientBuilder, redactedLoggedHeaderNames: IEnumerable_1<System_Internal.String>): IHttpClientBuilder;
462
463
  static RedactLoggedHeaders(builder: IHttpClientBuilder, shouldRedactHeaderValue: Func_2<System_Internal.String, System_Internal.Boolean>): IHttpClientBuilder;
463
464
  static RemoveAllLoggers(builder: IHttpClientBuilder): IHttpClientBuilder;
464
465
  static RemoveAsKeyed(builder: IHttpClientBuilder): IHttpClientBuilder;
465
466
  static SetHandlerLifetime(builder: IHttpClientBuilder, handlerLifetime: TimeSpan): IHttpClientBuilder;
466
467
  static UseSocketsHttpHandler(builder: IHttpClientBuilder, configureBuilder: Action_1<ISocketsHttpHandlerBuilder>): IHttpClientBuilder;
467
- static UseSocketsHttpHandler(builder: IHttpClientBuilder, configureHandler?: Action_2<SocketsHttpHandler, IServiceProvider>): IHttpClientBuilder;
468
+ static UseSocketsHttpHandler(builder: IHttpClientBuilder, configureHandler?: Action_2<SocketsHttpHandler, IServiceProvider> | null): IHttpClientBuilder;
468
469
  }
469
470
 
470
471
 
471
472
  export type HttpClientBuilderExtensions = HttpClientBuilderExtensions$instance;
472
473
 
473
474
  export abstract class HttpClientFactoryServiceCollectionExtensions$instance {
474
- static AddHttpClient<TClient, TImplementation extends TClient>(services: IServiceCollection, factory: Func_2<HttpClient, TImplementation>): IHttpClientBuilder;
475
- static AddHttpClient<TClient, TImplementation extends TClient>(services: IServiceCollection, factory: Func_3<HttpClient, IServiceProvider, TImplementation>): IHttpClientBuilder;
476
- static AddHttpClient<TClient>(services: IServiceCollection, configureClient: Action_1<HttpClient>): IHttpClientBuilder;
477
- static AddHttpClient<TClient>(services: IServiceCollection, configureClient: Action_2<IServiceProvider, HttpClient>): IHttpClientBuilder;
478
- static AddHttpClient<TClient, TImplementation extends TClient>(services: IServiceCollection, name: string, factory: Func_2<HttpClient, TImplementation>): IHttpClientBuilder;
479
- static AddHttpClient<TClient, TImplementation extends TClient>(services: IServiceCollection, name: string, factory: Func_3<HttpClient, IServiceProvider, TImplementation>): IHttpClientBuilder;
475
+ static AddHttpClient<TClient extends (object | null), TImplementation extends (object | null) & TClient>(services: IServiceCollection, factory: Func_2<HttpClient, TImplementation>): IHttpClientBuilder;
476
+ static AddHttpClient<TClient extends (object | null), TImplementation extends (object | null) & TClient>(services: IServiceCollection, factory: Func_3<HttpClient, IServiceProvider, TImplementation>): IHttpClientBuilder;
477
+ static AddHttpClient<TClient extends (object | null)>(services: IServiceCollection, configureClient: Action_1<HttpClient>): IHttpClientBuilder;
478
+ static AddHttpClient<TClient extends (object | null)>(services: IServiceCollection, configureClient: Action_2<IServiceProvider, HttpClient>): IHttpClientBuilder;
479
+ static AddHttpClient<TClient extends (object | null), TImplementation extends (object | null) & TClient>(services: IServiceCollection, name: string, factory: Func_2<HttpClient, TImplementation>): IHttpClientBuilder;
480
+ static AddHttpClient<TClient extends (object | null), TImplementation extends (object | null) & TClient>(services: IServiceCollection, name: string, factory: Func_3<HttpClient, IServiceProvider, TImplementation>): IHttpClientBuilder;
480
481
  static AddHttpClient(services: IServiceCollection, name: string, configureClient: Action_1<HttpClient>): IHttpClientBuilder;
481
482
  static AddHttpClient(services: IServiceCollection, name: string, configureClient: Action_2<IServiceProvider, HttpClient>): IHttpClientBuilder;
482
483
  static AddHttpClient(services: IServiceCollection, name: string): IHttpClientBuilder;
483
- static AddHttpClient<TClient>(services: IServiceCollection): IHttpClientBuilder;
484
+ static AddHttpClient<TClient extends (object | null)>(services: IServiceCollection): IHttpClientBuilder;
484
485
  static AddHttpClient(services: IServiceCollection): IServiceCollection;
485
486
  static ConfigureHttpClientDefaults(services: IServiceCollection, configure: Action_1<IHttpClientBuilder>): IServiceCollection;
486
487
  }
@@ -530,52 +531,52 @@ export abstract class MetricsServiceExtensions$instance {
530
531
  export type MetricsServiceExtensions = MetricsServiceExtensions$instance;
531
532
 
532
533
  export abstract class OptionsBuilderConfigurationExtensions$instance {
533
- static Bind<TOptions>(optionsBuilder: OptionsBuilder_1<TOptions>, config: IConfiguration, configureBinder: Action_1<BinderOptions>): OptionsBuilder_1<TOptions>;
534
- static Bind<TOptions>(optionsBuilder: OptionsBuilder_1<TOptions>, config: IConfiguration): OptionsBuilder_1<TOptions>;
535
- static BindConfiguration<TOptions>(optionsBuilder: OptionsBuilder_1<TOptions>, configSectionPath: string, configureBinder?: Action_1<BinderOptions>): OptionsBuilder_1<TOptions>;
534
+ static Bind<TOptions extends (object | null)>(optionsBuilder: OptionsBuilder_1<TOptions>, config: IConfiguration, configureBinder: Action_1<BinderOptions> | null): OptionsBuilder_1<TOptions>;
535
+ static Bind<TOptions extends (object | null)>(optionsBuilder: OptionsBuilder_1<TOptions>, config: IConfiguration): OptionsBuilder_1<TOptions>;
536
+ static BindConfiguration<TOptions extends (object | null)>(optionsBuilder: OptionsBuilder_1<TOptions>, configSectionPath: string, configureBinder?: Action_1<BinderOptions> | null): OptionsBuilder_1<TOptions>;
536
537
  }
537
538
 
538
539
 
539
540
  export type OptionsBuilderConfigurationExtensions = OptionsBuilderConfigurationExtensions$instance;
540
541
 
541
542
  export abstract class OptionsBuilderDataAnnotationsExtensions$instance {
542
- static ValidateDataAnnotations<TOptions>(optionsBuilder: OptionsBuilder_1<TOptions>): OptionsBuilder_1<TOptions>;
543
+ static ValidateDataAnnotations<TOptions extends (object | null)>(optionsBuilder: OptionsBuilder_1<TOptions>): OptionsBuilder_1<TOptions>;
543
544
  }
544
545
 
545
546
 
546
547
  export type OptionsBuilderDataAnnotationsExtensions = OptionsBuilderDataAnnotationsExtensions$instance;
547
548
 
548
549
  export abstract class OptionsBuilderExtensions$instance {
549
- static ValidateOnStart<TOptions>(optionsBuilder: OptionsBuilder_1<TOptions>): OptionsBuilder_1<TOptions>;
550
+ static ValidateOnStart<TOptions extends (object | null)>(optionsBuilder: OptionsBuilder_1<TOptions>): OptionsBuilder_1<TOptions>;
550
551
  }
551
552
 
552
553
 
553
554
  export type OptionsBuilderExtensions = OptionsBuilderExtensions$instance;
554
555
 
555
556
  export abstract class OptionsConfigurationServiceCollectionExtensions$instance {
556
- static Configure<TOptions>(services: IServiceCollection, config: IConfiguration, configureBinder: Action_1<BinderOptions>): IServiceCollection;
557
- static Configure<TOptions>(services: IServiceCollection, config: IConfiguration): IServiceCollection;
558
- static Configure<TOptions>(services: IServiceCollection, name: string, config: IConfiguration, configureBinder: Action_1<BinderOptions>): IServiceCollection;
559
- static Configure<TOptions>(services: IServiceCollection, name: string, config: IConfiguration): IServiceCollection;
557
+ static Configure<TOptions extends (object | null)>(services: IServiceCollection, config: IConfiguration, configureBinder: Action_1<BinderOptions> | null): IServiceCollection;
558
+ static Configure<TOptions extends (object | null)>(services: IServiceCollection, config: IConfiguration): IServiceCollection;
559
+ static Configure<TOptions extends (object | null)>(services: IServiceCollection, name: string | null, config: IConfiguration, configureBinder: Action_1<BinderOptions> | null): IServiceCollection;
560
+ static Configure<TOptions extends (object | null)>(services: IServiceCollection, name: string | null, config: IConfiguration): IServiceCollection;
560
561
  }
561
562
 
562
563
 
563
564
  export type OptionsConfigurationServiceCollectionExtensions = OptionsConfigurationServiceCollectionExtensions$instance;
564
565
 
565
566
  export abstract class OptionsServiceCollectionExtensions$instance {
566
- static AddOptions<TOptions>(services: IServiceCollection, name: string): OptionsBuilder_1<TOptions>;
567
+ static AddOptions<TOptions extends (object | null)>(services: IServiceCollection, name: string | null): OptionsBuilder_1<TOptions>;
567
568
  static AddOptions(services: IServiceCollection): IServiceCollection;
568
- static AddOptions<TOptions>(services: IServiceCollection): OptionsBuilder_1<TOptions>;
569
- static AddOptionsWithValidateOnStart<TOptions>(services: IServiceCollection, name?: string): OptionsBuilder_1<TOptions>;
570
- static Configure<TOptions>(services: IServiceCollection, configureOptions: Action_1<TOptions>): IServiceCollection;
571
- static Configure<TOptions>(services: IServiceCollection, name: string, configureOptions: Action_1<TOptions>): IServiceCollection;
572
- static ConfigureAll<TOptions>(services: IServiceCollection, configureOptions: Action_1<TOptions>): IServiceCollection;
569
+ static AddOptions<TOptions extends (object | null)>(services: IServiceCollection): OptionsBuilder_1<TOptions>;
570
+ static AddOptionsWithValidateOnStart<TOptions extends (object | null)>(services: IServiceCollection, name?: string | null): OptionsBuilder_1<TOptions>;
571
+ static Configure<TOptions extends (object | null)>(services: IServiceCollection, configureOptions: Action_1<TOptions>): IServiceCollection;
572
+ static Configure<TOptions extends (object | null)>(services: IServiceCollection, name: string | null, configureOptions: Action_1<TOptions>): IServiceCollection;
573
+ static ConfigureAll<TOptions extends (object | null)>(services: IServiceCollection, configureOptions: Action_1<TOptions>): IServiceCollection;
573
574
  static ConfigureOptions(services: IServiceCollection, configureInstance: unknown): IServiceCollection;
574
575
  static ConfigureOptions(services: IServiceCollection, configureType: Type): IServiceCollection;
575
- static ConfigureOptions<TConfigureOptions>(services: IServiceCollection): IServiceCollection;
576
- static PostConfigure<TOptions>(services: IServiceCollection, configureOptions: Action_1<TOptions>): IServiceCollection;
577
- static PostConfigure<TOptions>(services: IServiceCollection, name: string, configureOptions: Action_1<TOptions>): IServiceCollection;
578
- static PostConfigureAll<TOptions>(services: IServiceCollection, configureOptions: Action_1<TOptions>): IServiceCollection;
576
+ static ConfigureOptions<TConfigureOptions extends (object | null)>(services: IServiceCollection): IServiceCollection;
577
+ static PostConfigure<TOptions extends (object | null)>(services: IServiceCollection, configureOptions: Action_1<TOptions>): IServiceCollection;
578
+ static PostConfigure<TOptions extends (object | null)>(services: IServiceCollection, name: string | null, configureOptions: Action_1<TOptions>): IServiceCollection;
579
+ static PostConfigureAll<TOptions extends (object | null)>(services: IServiceCollection, configureOptions: Action_1<TOptions>): IServiceCollection;
579
580
  }
580
581
 
581
582
 
@@ -591,60 +592,60 @@ export abstract class ServiceCollectionContainerBuilderExtensions$instance {
591
592
  export type ServiceCollectionContainerBuilderExtensions = ServiceCollectionContainerBuilderExtensions$instance;
592
593
 
593
594
  export abstract class ServiceCollectionHostedServiceExtensions$instance {
594
- static AddHostedService<THostedService extends IHostedService>(services: IServiceCollection, implementationFactory: Func_2<IServiceProvider, THostedService>): IServiceCollection;
595
- static AddHostedService<THostedService extends IHostedService>(services: IServiceCollection): IServiceCollection;
595
+ static AddHostedService<THostedService extends (object | null) & IHostedService>(services: IServiceCollection, implementationFactory: Func_2<IServiceProvider, THostedService>): IServiceCollection;
596
+ static AddHostedService<THostedService extends (object | null) & IHostedService>(services: IServiceCollection): IServiceCollection;
596
597
  }
597
598
 
598
599
 
599
600
  export type ServiceCollectionHostedServiceExtensions = ServiceCollectionHostedServiceExtensions$instance;
600
601
 
601
602
  export abstract class ServiceCollectionServiceExtensions$instance {
602
- static AddKeyedScoped<TService>(services: IServiceCollection, serviceKey: unknown, implementationFactory: Func_3<IServiceProvider, unknown, TService>): IServiceCollection;
603
- static AddKeyedScoped<TService, TImplementation extends TService>(services: IServiceCollection, serviceKey: unknown): IServiceCollection;
604
- static AddKeyedScoped(services: IServiceCollection, serviceType: Type, serviceKey: unknown, implementationFactory: Func_3<IServiceProvider, unknown, unknown>): IServiceCollection;
605
- static AddKeyedScoped(services: IServiceCollection, serviceType: Type, serviceKey: unknown, implementationType: Type): IServiceCollection;
606
- static AddKeyedScoped(services: IServiceCollection, serviceType: Type, serviceKey: unknown): IServiceCollection;
607
- static AddKeyedSingleton<TService>(services: IServiceCollection, serviceKey: unknown, implementationFactory: Func_3<IServiceProvider, unknown, TService>): IServiceCollection;
608
- static AddKeyedSingleton<TService>(services: IServiceCollection, serviceKey: unknown, implementationInstance: TService): IServiceCollection;
609
- static AddKeyedSingleton<TService, TImplementation extends TService>(services: IServiceCollection, serviceKey: unknown): IServiceCollection;
610
- static AddKeyedSingleton(services: IServiceCollection, serviceType: Type, serviceKey: unknown, implementationFactory: Func_3<IServiceProvider, unknown, unknown>): IServiceCollection;
611
- static AddKeyedSingleton(services: IServiceCollection, serviceType: Type, serviceKey: unknown, implementationInstance: unknown): IServiceCollection;
612
- static AddKeyedSingleton(services: IServiceCollection, serviceType: Type, serviceKey: unknown, implementationType: Type): IServiceCollection;
613
- static AddKeyedSingleton(services: IServiceCollection, serviceType: Type, serviceKey: unknown): IServiceCollection;
614
- static AddKeyedTransient<TService>(services: IServiceCollection, serviceKey: unknown, implementationFactory: Func_3<IServiceProvider, unknown, TService>): IServiceCollection;
615
- static AddKeyedTransient<TService, TImplementation extends TService>(services: IServiceCollection, serviceKey: unknown): IServiceCollection;
616
- static AddKeyedTransient(services: IServiceCollection, serviceType: Type, serviceKey: unknown, implementationFactory: Func_3<IServiceProvider, unknown, unknown>): IServiceCollection;
617
- static AddKeyedTransient(services: IServiceCollection, serviceType: Type, serviceKey: unknown, implementationType: Type): IServiceCollection;
618
- static AddKeyedTransient(services: IServiceCollection, serviceType: Type, serviceKey: unknown): IServiceCollection;
619
- static AddScoped<TService>(services: IServiceCollection, implementationFactory: Func_2<IServiceProvider, TService>): IServiceCollection;
603
+ static AddKeyedScoped<TService extends (object | null)>(services: IServiceCollection, serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, TService>): IServiceCollection;
604
+ static AddKeyedScoped<TService extends (object | null), TImplementation extends (object | null) & TService>(services: IServiceCollection, serviceKey: unknown | null): IServiceCollection;
605
+ static AddKeyedScoped(services: IServiceCollection, serviceType: Type, serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, unknown>): IServiceCollection;
606
+ static AddKeyedScoped(services: IServiceCollection, serviceType: Type, serviceKey: unknown | null, implementationType: Type): IServiceCollection;
607
+ static AddKeyedScoped(services: IServiceCollection, serviceType: Type, serviceKey: unknown | null): IServiceCollection;
608
+ static AddKeyedSingleton<TService extends (object | null)>(services: IServiceCollection, serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, TService>): IServiceCollection;
609
+ static AddKeyedSingleton<TService extends (object | null)>(services: IServiceCollection, serviceKey: unknown | null, implementationInstance: TService): IServiceCollection;
610
+ static AddKeyedSingleton<TService extends (object | null), TImplementation extends (object | null) & TService>(services: IServiceCollection, serviceKey: unknown | null): IServiceCollection;
611
+ static AddKeyedSingleton(services: IServiceCollection, serviceType: Type, serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, unknown>): IServiceCollection;
612
+ static AddKeyedSingleton(services: IServiceCollection, serviceType: Type, serviceKey: unknown | null, implementationInstance: unknown): IServiceCollection;
613
+ static AddKeyedSingleton(services: IServiceCollection, serviceType: Type, serviceKey: unknown | null, implementationType: Type): IServiceCollection;
614
+ static AddKeyedSingleton(services: IServiceCollection, serviceType: Type, serviceKey: unknown | null): IServiceCollection;
615
+ static AddKeyedTransient<TService extends (object | null)>(services: IServiceCollection, serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, TService>): IServiceCollection;
616
+ static AddKeyedTransient<TService extends (object | null), TImplementation extends (object | null) & TService>(services: IServiceCollection, serviceKey: unknown | null): IServiceCollection;
617
+ static AddKeyedTransient(services: IServiceCollection, serviceType: Type, serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, unknown>): IServiceCollection;
618
+ static AddKeyedTransient(services: IServiceCollection, serviceType: Type, serviceKey: unknown | null, implementationType: Type): IServiceCollection;
619
+ static AddKeyedTransient(services: IServiceCollection, serviceType: Type, serviceKey: unknown | null): IServiceCollection;
620
+ static AddScoped<TService extends (object | null)>(services: IServiceCollection, implementationFactory: Func_2<IServiceProvider, TService>): IServiceCollection;
620
621
  static AddScoped(services: IServiceCollection, serviceType: Type, implementationFactory: Func_2<IServiceProvider, unknown>): IServiceCollection;
621
622
  static AddScoped(services: IServiceCollection, serviceType: Type, implementationType: Type): IServiceCollection;
622
623
  static AddScoped(services: IServiceCollection, serviceType: Type): IServiceCollection;
623
- static AddScoped<TService, TImplementation extends TService>(services: IServiceCollection): IServiceCollection;
624
- static AddSingleton<TService>(services: IServiceCollection, implementationFactory: Func_2<IServiceProvider, TService>): IServiceCollection;
624
+ static AddScoped<TService extends (object | null), TImplementation extends (object | null) & TService>(services: IServiceCollection): IServiceCollection;
625
+ static AddSingleton<TService extends (object | null)>(services: IServiceCollection, implementationFactory: Func_2<IServiceProvider, TService>): IServiceCollection;
625
626
  static AddSingleton(services: IServiceCollection, serviceType: Type, implementationFactory: Func_2<IServiceProvider, unknown>): IServiceCollection;
626
627
  static AddSingleton(services: IServiceCollection, serviceType: Type, implementationInstance: unknown): IServiceCollection;
627
628
  static AddSingleton(services: IServiceCollection, serviceType: Type, implementationType: Type): IServiceCollection;
628
629
  static AddSingleton(services: IServiceCollection, serviceType: Type): IServiceCollection;
629
- static AddSingleton<TService>(services: IServiceCollection, implementationInstance: TService): IServiceCollection;
630
- static AddSingleton<TService, TImplementation extends TService>(services: IServiceCollection): IServiceCollection;
631
- static AddTransient<TService>(services: IServiceCollection, implementationFactory: Func_2<IServiceProvider, TService>): IServiceCollection;
630
+ static AddSingleton<TService extends (object | null)>(services: IServiceCollection, implementationInstance: TService): IServiceCollection;
631
+ static AddSingleton<TService extends (object | null), TImplementation extends (object | null) & TService>(services: IServiceCollection): IServiceCollection;
632
+ static AddTransient<TService extends (object | null)>(services: IServiceCollection, implementationFactory: Func_2<IServiceProvider, TService>): IServiceCollection;
632
633
  static AddTransient(services: IServiceCollection, serviceType: Type, implementationFactory: Func_2<IServiceProvider, unknown>): IServiceCollection;
633
634
  static AddTransient(services: IServiceCollection, serviceType: Type, implementationType: Type): IServiceCollection;
634
635
  static AddTransient(services: IServiceCollection, serviceType: Type): IServiceCollection;
635
- static AddTransient<TService, TImplementation extends TService>(services: IServiceCollection): IServiceCollection;
636
+ static AddTransient<TService extends (object | null), TImplementation extends (object | null) & TService>(services: IServiceCollection): IServiceCollection;
636
637
  }
637
638
 
638
639
 
639
640
  export type ServiceCollectionServiceExtensions = ServiceCollectionServiceExtensions$instance;
640
641
 
641
642
  export abstract class ServiceProviderKeyedServiceExtensions$instance {
642
- static GetKeyedService<T>(provider: IServiceProvider, serviceKey: unknown): T | undefined;
643
- static GetKeyedService(provider: IServiceProvider, serviceType: Type, serviceKey: unknown): unknown | undefined;
644
- static GetKeyedServices<T>(provider: IServiceProvider, serviceKey: unknown): IEnumerable_1<T>;
645
- static GetKeyedServices(provider: IServiceProvider, serviceType: Type, serviceKey: unknown): IEnumerable_1<unknown | undefined>;
646
- static GetRequiredKeyedService<T>(provider: IServiceProvider, serviceKey: unknown): T;
647
- static GetRequiredKeyedService(provider: IServiceProvider, serviceType: Type, serviceKey: unknown): unknown;
643
+ static GetKeyedService<T extends unknown>(provider: IServiceProvider, serviceKey: unknown | null): T | null;
644
+ static GetKeyedService(provider: IServiceProvider, serviceType: Type, serviceKey: unknown | null): unknown | null;
645
+ static GetKeyedServices<T extends unknown>(provider: IServiceProvider, serviceKey: unknown | null): IEnumerable_1<T>;
646
+ static GetKeyedServices(provider: IServiceProvider, serviceType: Type, serviceKey: unknown | null): IEnumerable_1<unknown | null>;
647
+ static GetRequiredKeyedService<T extends unknown>(provider: IServiceProvider, serviceKey: unknown | null): T;
648
+ static GetRequiredKeyedService(provider: IServiceProvider, serviceType: Type, serviceKey: unknown | null): unknown;
648
649
  }
649
650
 
650
651
 
@@ -655,10 +656,10 @@ export abstract class ServiceProviderServiceExtensions$instance {
655
656
  static CreateAsyncScope(provider: IServiceProvider): AsyncServiceScope;
656
657
  static CreateScope(provider: IServiceProvider): IServiceScope;
657
658
  static GetRequiredService(provider: IServiceProvider, serviceType: Type): unknown;
658
- static GetRequiredService<T>(provider: IServiceProvider): T;
659
- static GetService<T>(provider: IServiceProvider): T | undefined;
660
- static GetServices(provider: IServiceProvider, serviceType: Type): IEnumerable_1<unknown | undefined>;
661
- static GetServices<T>(provider: IServiceProvider): IEnumerable_1<T>;
659
+ static GetRequiredService<T extends unknown>(provider: IServiceProvider): T;
660
+ static GetService<T extends unknown>(provider: IServiceProvider): T | null;
661
+ static GetServices(provider: IServiceProvider, serviceType: Type): IEnumerable_1<unknown | null>;
662
+ static GetServices<T extends unknown>(provider: IServiceProvider): IEnumerable_1<T>;
662
663
  }
663
664
 
664
665
 
@@ -673,7 +674,7 @@ export abstract class SocketsHttpHandlerBuilderExtensions$instance {
673
674
  export type SocketsHttpHandlerBuilderExtensions = SocketsHttpHandlerBuilderExtensions$instance;
674
675
 
675
676
  export abstract class ValidationServiceCollectionExtensions$instance {
676
- static AddValidation(services: IServiceCollection, configureOptions?: Action_1<ValidationOptions>): IServiceCollection;
677
+ static AddValidation(services: IServiceCollection, configureOptions?: Action_1<ValidationOptions> | null): IServiceCollection;
677
678
  }
678
679
 
679
680
 
@@ -2,8 +2,9 @@
2
2
  // Namespace: Microsoft.Extensions.DependencyInjection.Extensions
3
3
  // Assembly: Microsoft.Extensions.DependencyInjection.Abstractions
4
4
 
5
- // Primitive type aliases from @tsonic/core
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
5
+ // Core type aliases from @tsonic/core
6
+ import type { 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 { IServiceCollection, ServiceDescriptor } from "../../Microsoft.Extensions.DependencyInjection/internal/index.js";
@@ -15,46 +16,46 @@ export abstract class ServiceCollectionDescriptorExtensions$instance {
15
16
  static Add(collection: IServiceCollection, descriptor: ServiceDescriptor): IServiceCollection;
16
17
  static Add(collection: IServiceCollection, descriptors: IEnumerable_1<ServiceDescriptor>): IServiceCollection;
17
18
  static RemoveAll(collection: IServiceCollection, serviceType: Type): IServiceCollection;
18
- static RemoveAll<T>(collection: IServiceCollection): IServiceCollection;
19
- static RemoveAllKeyed<T>(collection: IServiceCollection, serviceKey: unknown): IServiceCollection;
20
- static RemoveAllKeyed(collection: IServiceCollection, serviceType: Type, serviceKey: unknown): IServiceCollection;
19
+ static RemoveAll<T extends unknown>(collection: IServiceCollection): IServiceCollection;
20
+ static RemoveAllKeyed<T extends unknown>(collection: IServiceCollection, serviceKey: unknown | null): IServiceCollection;
21
+ static RemoveAllKeyed(collection: IServiceCollection, serviceType: Type, serviceKey: unknown | null): IServiceCollection;
21
22
  static Replace(collection: IServiceCollection, descriptor: ServiceDescriptor): IServiceCollection;
22
23
  static TryAdd(collection: IServiceCollection, descriptor: ServiceDescriptor): void;
23
24
  static TryAdd(collection: IServiceCollection, descriptors: IEnumerable_1<ServiceDescriptor>): void;
24
25
  static TryAddEnumerable(services: IServiceCollection, descriptor: ServiceDescriptor): void;
25
26
  static TryAddEnumerable(services: IServiceCollection, descriptors: IEnumerable_1<ServiceDescriptor>): void;
26
- static TryAddKeyedScoped<TService>(services: IServiceCollection, serviceKey: unknown, implementationFactory: Func_3<IServiceProvider, unknown, TService>): void;
27
- static TryAddKeyedScoped<TService>(collection: IServiceCollection, serviceKey: unknown): void;
28
- static TryAddKeyedScoped(collection: IServiceCollection, service: Type, serviceKey: unknown, implementationFactory: Func_3<IServiceProvider, unknown, unknown>): void;
29
- static TryAddKeyedScoped(collection: IServiceCollection, service: Type, serviceKey: unknown, implementationType: Type): void;
30
- static TryAddKeyedScoped(collection: IServiceCollection, service: Type, serviceKey: unknown): void;
31
- static TryAddKeyedSingleton<TService>(services: IServiceCollection, serviceKey: unknown, implementationFactory: Func_3<IServiceProvider, unknown, TService>): void;
32
- static TryAddKeyedSingleton<TService>(collection: IServiceCollection, serviceKey: unknown, instance: TService): void;
33
- static TryAddKeyedSingleton<TService>(collection: IServiceCollection, serviceKey: unknown): void;
34
- static TryAddKeyedSingleton(collection: IServiceCollection, service: Type, serviceKey: unknown, implementationFactory: Func_3<IServiceProvider, unknown, unknown>): void;
35
- static TryAddKeyedSingleton(collection: IServiceCollection, service: Type, serviceKey: unknown, implementationType: Type): void;
36
- static TryAddKeyedSingleton(collection: IServiceCollection, service: Type, serviceKey: unknown): void;
37
- static TryAddKeyedTransient<TService>(services: IServiceCollection, serviceKey: unknown, implementationFactory: Func_3<IServiceProvider, unknown, TService>): void;
38
- static TryAddKeyedTransient<TService>(collection: IServiceCollection, serviceKey: unknown): void;
39
- static TryAddKeyedTransient(collection: IServiceCollection, service: Type, serviceKey: unknown, implementationFactory: Func_3<IServiceProvider, unknown, unknown>): void;
40
- static TryAddKeyedTransient(collection: IServiceCollection, service: Type, serviceKey: unknown, implementationType: Type): void;
41
- static TryAddKeyedTransient(collection: IServiceCollection, service: Type, serviceKey: unknown): void;
42
- static TryAddScoped<TService>(services: IServiceCollection, implementationFactory: Func_2<IServiceProvider, TService>): void;
27
+ static TryAddKeyedScoped<TService extends (object | null)>(services: IServiceCollection, serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, TService>): void;
28
+ static TryAddKeyedScoped<TService extends (object | null)>(collection: IServiceCollection, serviceKey: unknown | null): void;
29
+ static TryAddKeyedScoped(collection: IServiceCollection, service: Type, serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, unknown>): void;
30
+ static TryAddKeyedScoped(collection: IServiceCollection, service: Type, serviceKey: unknown | null, implementationType: Type): void;
31
+ static TryAddKeyedScoped(collection: IServiceCollection, service: Type, serviceKey: unknown | null): void;
32
+ static TryAddKeyedSingleton<TService extends (object | null)>(services: IServiceCollection, serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, TService>): void;
33
+ static TryAddKeyedSingleton<TService extends (object | null)>(collection: IServiceCollection, serviceKey: unknown | null, instance: TService): void;
34
+ static TryAddKeyedSingleton<TService extends (object | null)>(collection: IServiceCollection, serviceKey: unknown | null): void;
35
+ static TryAddKeyedSingleton(collection: IServiceCollection, service: Type, serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, unknown>): void;
36
+ static TryAddKeyedSingleton(collection: IServiceCollection, service: Type, serviceKey: unknown | null, implementationType: Type): void;
37
+ static TryAddKeyedSingleton(collection: IServiceCollection, service: Type, serviceKey: unknown | null): void;
38
+ static TryAddKeyedTransient<TService extends (object | null)>(services: IServiceCollection, serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, TService>): void;
39
+ static TryAddKeyedTransient<TService extends (object | null)>(collection: IServiceCollection, serviceKey: unknown | null): void;
40
+ static TryAddKeyedTransient(collection: IServiceCollection, service: Type, serviceKey: unknown | null, implementationFactory: Func_3<IServiceProvider, unknown | null, unknown>): void;
41
+ static TryAddKeyedTransient(collection: IServiceCollection, service: Type, serviceKey: unknown | null, implementationType: Type): void;
42
+ static TryAddKeyedTransient(collection: IServiceCollection, service: Type, serviceKey: unknown | null): void;
43
+ static TryAddScoped<TService extends (object | null)>(services: IServiceCollection, implementationFactory: Func_2<IServiceProvider, TService>): void;
43
44
  static TryAddScoped(collection: IServiceCollection, service: Type, implementationFactory: Func_2<IServiceProvider, unknown>): void;
44
45
  static TryAddScoped(collection: IServiceCollection, service: Type, implementationType: Type): void;
45
46
  static TryAddScoped(collection: IServiceCollection, service: Type): void;
46
- static TryAddScoped<TService>(collection: IServiceCollection): void;
47
- static TryAddSingleton<TService>(services: IServiceCollection, implementationFactory: Func_2<IServiceProvider, TService>): void;
47
+ static TryAddScoped<TService extends (object | null)>(collection: IServiceCollection): void;
48
+ static TryAddSingleton<TService extends (object | null)>(services: IServiceCollection, implementationFactory: Func_2<IServiceProvider, TService>): void;
48
49
  static TryAddSingleton(collection: IServiceCollection, service: Type, implementationFactory: Func_2<IServiceProvider, unknown>): void;
49
50
  static TryAddSingleton(collection: IServiceCollection, service: Type, implementationType: Type): void;
50
51
  static TryAddSingleton(collection: IServiceCollection, service: Type): void;
51
- static TryAddSingleton<TService>(collection: IServiceCollection, instance: TService): void;
52
- static TryAddSingleton<TService>(collection: IServiceCollection): void;
53
- static TryAddTransient<TService>(services: IServiceCollection, implementationFactory: Func_2<IServiceProvider, TService>): void;
52
+ static TryAddSingleton<TService extends (object | null)>(collection: IServiceCollection, instance: TService): void;
53
+ static TryAddSingleton<TService extends (object | null)>(collection: IServiceCollection): void;
54
+ static TryAddTransient<TService extends (object | null)>(services: IServiceCollection, implementationFactory: Func_2<IServiceProvider, TService>): void;
54
55
  static TryAddTransient(collection: IServiceCollection, service: Type, implementationFactory: Func_2<IServiceProvider, unknown>): void;
55
56
  static TryAddTransient(collection: IServiceCollection, service: Type, implementationType: Type): void;
56
57
  static TryAddTransient(collection: IServiceCollection, service: Type): void;
57
- static TryAddTransient<TService>(collection: IServiceCollection): void;
58
+ static TryAddTransient<TService extends (object | null)>(collection: IServiceCollection): void;
58
59
  }
59
60
 
60
61