@tsonic/microsoft-extensions 10.0.26 → 10.0.31

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.
@@ -50,9 +50,12 @@ export type IDistributedCache = IDistributedCache$instance;
50
50
  export interface DistributedCacheEntryOptions$instance {
51
51
  readonly __tsonic_type_Microsoft_Extensions_Caching_Distributed_DistributedCacheEntryOptions: never;
52
52
 
53
- AbsoluteExpiration: Nullable_1<DateTimeOffset>;
54
- AbsoluteExpirationRelativeToNow: Nullable_1<TimeSpan>;
55
- SlidingExpiration: Nullable_1<TimeSpan>;
53
+ get AbsoluteExpiration(): Nullable_1<DateTimeOffset>;
54
+ set AbsoluteExpiration(value: Nullable_1<DateTimeOffset> | DateTimeOffset);
55
+ get AbsoluteExpirationRelativeToNow(): Nullable_1<TimeSpan>;
56
+ set AbsoluteExpirationRelativeToNow(value: Nullable_1<TimeSpan> | TimeSpan);
57
+ get SlidingExpiration(): Nullable_1<TimeSpan>;
58
+ set SlidingExpiration(value: Nullable_1<TimeSpan> | TimeSpan);
56
59
  }
57
60
 
58
61
 
@@ -75,9 +75,12 @@ export type HybridCache = HybridCache$instance;
75
75
  export interface HybridCacheEntryOptions$instance {
76
76
  readonly __tsonic_type_Microsoft_Extensions_Caching_Hybrid_HybridCacheEntryOptions: never;
77
77
 
78
- Expiration: Nullable_1<TimeSpan>;
79
- Flags: Nullable_1<HybridCacheEntryFlags>;
80
- LocalCacheExpiration: Nullable_1<TimeSpan>;
78
+ get Expiration(): Nullable_1<TimeSpan>;
79
+ set Expiration(value: Nullable_1<TimeSpan> | TimeSpan);
80
+ get Flags(): Nullable_1<HybridCacheEntryFlags>;
81
+ set Flags(value: Nullable_1<HybridCacheEntryFlags> | HybridCacheEntryFlags);
82
+ get LocalCacheExpiration(): Nullable_1<TimeSpan>;
83
+ set LocalCacheExpiration(value: Nullable_1<TimeSpan> | TimeSpan);
81
84
  }
82
85
 
83
86
 
@@ -48,13 +48,17 @@ export interface ICacheEntry$instance extends IDisposable {
48
48
  readonly Key: unknown;
49
49
  get Value(): unknown | undefined;
50
50
  set Value(value: unknown | undefined);
51
- AbsoluteExpiration: Nullable_1<DateTimeOffset>;
52
- AbsoluteExpirationRelativeToNow: Nullable_1<TimeSpan>;
53
- SlidingExpiration: Nullable_1<TimeSpan>;
51
+ get AbsoluteExpiration(): Nullable_1<DateTimeOffset>;
52
+ set AbsoluteExpiration(value: Nullable_1<DateTimeOffset> | DateTimeOffset);
53
+ get AbsoluteExpirationRelativeToNow(): Nullable_1<TimeSpan>;
54
+ set AbsoluteExpirationRelativeToNow(value: Nullable_1<TimeSpan> | TimeSpan);
55
+ get SlidingExpiration(): Nullable_1<TimeSpan>;
56
+ set SlidingExpiration(value: Nullable_1<TimeSpan> | TimeSpan);
54
57
  readonly ExpirationTokens: IList_1<IChangeToken>;
55
58
  readonly PostEvictionCallbacks: IList_1<PostEvictionCallbackRegistration>;
56
59
  Priority: CacheItemPriority;
57
- Size: Nullable_1<System_Internal.Int64>;
60
+ get Size(): Nullable_1<System_Internal.Int64>;
61
+ set Size(value: Nullable_1<System_Internal.Int64> | long);
58
62
  }
59
63
 
60
64
 
@@ -114,13 +118,17 @@ export type MemoryCache = MemoryCache$instance & __MemoryCache$views;
114
118
  export interface MemoryCacheEntryOptions$instance {
115
119
  readonly __tsonic_type_Microsoft_Extensions_Caching_Memory_MemoryCacheEntryOptions: never;
116
120
 
117
- AbsoluteExpiration: Nullable_1<DateTimeOffset>;
118
- AbsoluteExpirationRelativeToNow: Nullable_1<TimeSpan>;
121
+ get AbsoluteExpiration(): Nullable_1<DateTimeOffset>;
122
+ set AbsoluteExpiration(value: Nullable_1<DateTimeOffset> | DateTimeOffset);
123
+ get AbsoluteExpirationRelativeToNow(): Nullable_1<TimeSpan>;
124
+ set AbsoluteExpirationRelativeToNow(value: Nullable_1<TimeSpan> | TimeSpan);
119
125
  readonly ExpirationTokens: IList_1<IChangeToken>;
120
126
  readonly PostEvictionCallbacks: IList_1<PostEvictionCallbackRegistration>;
121
127
  Priority: CacheItemPriority;
122
- Size: Nullable_1<System_Internal.Int64>;
123
- SlidingExpiration: Nullable_1<TimeSpan>;
128
+ get Size(): Nullable_1<System_Internal.Int64>;
129
+ set Size(value: Nullable_1<System_Internal.Int64> | long);
130
+ get SlidingExpiration(): Nullable_1<TimeSpan>;
131
+ set SlidingExpiration(value: Nullable_1<TimeSpan> | TimeSpan);
124
132
  }
125
133
 
126
134
 
@@ -141,7 +149,8 @@ export interface MemoryCacheOptions$instance extends Microsoft_Extensions_Option
141
149
  CompactionPercentage: double;
142
150
  CompactOnMemoryPressure: boolean;
143
151
  ExpirationScanFrequency: TimeSpan;
144
- SizeLimit: Nullable_1<System_Internal.Int64>;
152
+ get SizeLimit(): Nullable_1<System_Internal.Int64>;
153
+ set SizeLimit(value: Nullable_1<System_Internal.Int64> | long);
145
154
  TrackLinkedCacheEntries: boolean;
146
155
  TrackStatistics: boolean;
147
156
  }
@@ -163,7 +172,8 @@ export interface MemoryCacheStatistics$instance {
163
172
  readonly __tsonic_type_Microsoft_Extensions_Caching_Memory_MemoryCacheStatistics: never;
164
173
 
165
174
  CurrentEntryCount: long;
166
- CurrentEstimatedSize: Nullable_1<System_Internal.Int64>;
175
+ get CurrentEstimatedSize(): Nullable_1<System_Internal.Int64>;
176
+ set CurrentEstimatedSize(value: Nullable_1<System_Internal.Int64> | long);
167
177
  TotalHits: long;
168
178
  TotalMisses: long;
169
179
  }
@@ -112,11 +112,13 @@ export type HealthCheckPublisherOptions = HealthCheckPublisherOptions$instance;
112
112
  export interface HealthCheckRegistration$instance {
113
113
  readonly __tsonic_type_Microsoft_Extensions_Diagnostics_HealthChecks_HealthCheckRegistration: never;
114
114
 
115
- Delay: Nullable_1<TimeSpan>;
115
+ get Delay(): Nullable_1<TimeSpan>;
116
+ set Delay(value: Nullable_1<TimeSpan> | TimeSpan);
116
117
  Factory: Func_2<IServiceProvider, IHealthCheck>;
117
118
  FailureStatus: HealthStatus;
118
119
  Name: string;
119
- Period: Nullable_1<TimeSpan>;
120
+ get Period(): Nullable_1<TimeSpan>;
121
+ set Period(value: Nullable_1<TimeSpan> | TimeSpan);
120
122
  readonly Tags: ISet_1<System_Internal.String>;
121
123
  Timeout: TimeSpan;
122
124
  }
@@ -156,9 +156,11 @@ export interface EventLogConfiguration$instance {
156
156
  readonly OwningProviderName: string;
157
157
  readonly ProviderBufferSize: Nullable_1<System_Internal.Int32>;
158
158
  readonly ProviderControlGuid: Nullable_1<Guid>;
159
- ProviderKeywords: Nullable_1<System_Internal.Int64>;
159
+ get ProviderKeywords(): Nullable_1<System_Internal.Int64>;
160
+ set ProviderKeywords(value: Nullable_1<System_Internal.Int64> | long);
160
161
  readonly ProviderLatency: Nullable_1<System_Internal.Int32>;
161
- ProviderLevel: Nullable_1<System_Internal.Int32>;
162
+ get ProviderLevel(): Nullable_1<System_Internal.Int32>;
163
+ set ProviderLevel(value: Nullable_1<System_Internal.Int32> | int);
162
164
  readonly ProviderMaximumNumberOfBuffers: Nullable_1<System_Internal.Int32>;
163
165
  readonly ProviderMinimumNumberOfBuffers: Nullable_1<System_Internal.Int32>;
164
166
  readonly ProviderNames: IEnumerable_1<System_Internal.String>;
@@ -15,7 +15,7 @@ import type { ReadOnlyCollection_1 } from "@tsonic/dotnet/System.Collections.Obj
15
15
  import * as System_Collections_Internal from "@tsonic/dotnet/System.Collections/internal/index.js";
16
16
  import type { ICollection, IEnumerable, IEnumerator } from "@tsonic/dotnet/System.Collections/internal/index.js";
17
17
  import type { X509Certificate2, X509Certificate2Collection, X509ExtensionCollection, X509IncludeOption } from "@tsonic/dotnet/System.Security.Cryptography.X509Certificates/internal/index.js";
18
- import * as System_Security_Cryptography_Lib from "@tsonic/dotnet/System.Security.Cryptography/internal/index.js";
18
+ import * as System_Security_Cryptography_Lib_tsonic_dotnet from "@tsonic/dotnet/System.Security.Cryptography/internal/index.js";
19
19
  import type { AsnEncodedData, AsymmetricAlgorithm, CompositeMLDsa, CspParameters, HashAlgorithmName, MLDsa, Oid, PbeParameters, RSA, RSAEncryptionPadding, RSASignaturePadding, SlhDsa } from "@tsonic/dotnet/System.Security.Cryptography/internal/index.js";
20
20
  import * as System_Internal from "@tsonic/dotnet/System/internal/index.js";
21
21
  import type { Array as ClrArray, Boolean as ClrBoolean, Byte, Char, DateTime, DateTimeOffset, Enum, IComparable, IConvertible, IFormattable, Int32, Int64, ISpanFormattable, Nullable_1, Object as ClrObject, ReadOnlyMemory_1, ReadOnlySpan_1, Span_1, String as ClrString, Void } from "@tsonic/dotnet/System/internal/index.js";
@@ -599,9 +599,9 @@ export interface __Ext_System_Net_Http_IHttpMessageHandlerFactory {
599
599
 
600
600
  // Internal helper types for sticky extension scopes
601
601
  type __TsonicExtMapOf<T> = T extends { __tsonic_ext?: infer M } ? M : {};
602
- type __TsonicMergeExtMaps<A, B> = Omit<A, keyof B> & B;
602
+ type __TsonicMergeExtMaps<A, B> = A & B;
603
603
  type __TsonicWithExt<TShape, K extends string, TApplier> = { __tsonic_ext?: __TsonicMergeExtMaps<__TsonicExtMapOf<TShape>, { [P in K]: TApplier }> };
604
- type __TsonicPreferExt<A, B> = Omit<A, keyof B> & B;
604
+ type __TsonicPreferExt<A, B> = A & B;
605
605
 
606
606
  // Generic helper type for extension methods in namespace: Microsoft.Extensions.Caching.Distributed
607
607
  type __TsonicExtSurface_Microsoft_Extensions_Caching_Distributed<TShape> =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsonic/microsoft-extensions",
3
- "version": "10.0.26",
3
+ "version": "10.0.31",
4
4
  "description": "TypeScript type definitions for Microsoft.Extensions.* (Hosting/DI/Logging/Configuration/Options) for .NET 10",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -22,7 +22,7 @@
22
22
  "url": "https://github.com/tsoniclang/microsoft-extensions.git"
23
23
  },
24
24
  "peerDependencies": {
25
- "@tsonic/core": "10.0.26",
26
- "@tsonic/dotnet": "10.0.26"
25
+ "@tsonic/core": "10.0.31",
26
+ "@tsonic/dotnet": "10.0.31"
27
27
  }
28
28
  }