@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
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
// Namespace: Microsoft.Extensions.Caching.Distributed
|
|
3
3
|
// Assembly: Microsoft.Extensions.Caching.Abstractions, Microsoft.Extensions.Caching.Memory
|
|
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 { MemoryDistributedCacheOptions } from "../../Microsoft.Extensions.Caching.Memory/internal/index.js";
|
|
@@ -18,8 +19,8 @@ import type { Boolean as ClrBoolean, Byte, DateTimeOffset, Nullable_1, Object as
|
|
|
18
19
|
export interface IBufferDistributedCache$instance extends IDistributedCache {
|
|
19
20
|
readonly __tsonic_iface_Microsoft_Extensions_Caching_Distributed_IBufferDistributedCache: never;
|
|
20
21
|
|
|
21
|
-
Get(key: string): byte[] |
|
|
22
|
-
GetAsync(key: string, token?: CancellationToken): Task_1<byte[] |
|
|
22
|
+
Get(key: string): byte[] | null;
|
|
23
|
+
GetAsync(key: string, token?: CancellationToken): Task_1<byte[] | null>;
|
|
23
24
|
Refresh(key: string): void;
|
|
24
25
|
RefreshAsync(key: string, token?: CancellationToken): Task;
|
|
25
26
|
Set(key: string, value: ReadOnlySequence_1<System_Internal.Byte>, options: DistributedCacheEntryOptions): void;
|
|
@@ -36,8 +37,8 @@ export type IBufferDistributedCache = IBufferDistributedCache$instance;
|
|
|
36
37
|
export interface IDistributedCache$instance {
|
|
37
38
|
readonly __tsonic_iface_Microsoft_Extensions_Caching_Distributed_IDistributedCache: never;
|
|
38
39
|
|
|
39
|
-
Get(key: string): byte[] |
|
|
40
|
-
GetAsync(key: string, token?: CancellationToken): Task_1<byte[] |
|
|
40
|
+
Get(key: string): byte[] | null;
|
|
41
|
+
GetAsync(key: string, token?: CancellationToken): Task_1<byte[] | null>;
|
|
41
42
|
Refresh(key: string): void;
|
|
42
43
|
RefreshAsync(key: string, token?: CancellationToken): Task;
|
|
43
44
|
Set(key: string, value: byte[], options: DistributedCacheEntryOptions): void;
|
|
@@ -71,8 +72,8 @@ export interface MemoryDistributedCache$instance extends IDistributedCache$insta
|
|
|
71
72
|
|
|
72
73
|
readonly __tsonic_iface_Microsoft_Extensions_Caching_Distributed_IDistributedCache: never;
|
|
73
74
|
|
|
74
|
-
Get(key: string): byte[] |
|
|
75
|
-
GetAsync(key: string, token?: CancellationToken): Task_1<byte[] |
|
|
75
|
+
Get(key: string): byte[] | null;
|
|
76
|
+
GetAsync(key: string, token?: CancellationToken): Task_1<byte[] | null>;
|
|
76
77
|
Refresh(key: string): void;
|
|
77
78
|
RefreshAsync(key: string, token?: CancellationToken): Task;
|
|
78
79
|
Remove(key: string): void;
|
|
@@ -105,8 +106,8 @@ export abstract class DistributedCacheEntryExtensions$instance {
|
|
|
105
106
|
export type DistributedCacheEntryExtensions = DistributedCacheEntryExtensions$instance;
|
|
106
107
|
|
|
107
108
|
export abstract class DistributedCacheExtensions$instance {
|
|
108
|
-
static GetString(cache: IDistributedCache, key: string): string |
|
|
109
|
-
static GetStringAsync(cache: IDistributedCache, key: string, token?: CancellationToken): Task_1<string |
|
|
109
|
+
static GetString(cache: IDistributedCache, key: string): string | null;
|
|
110
|
+
static GetStringAsync(cache: IDistributedCache, key: string, token?: CancellationToken): Task_1<string | null>;
|
|
110
111
|
static Set(cache: IDistributedCache, key: string, value: byte[]): void;
|
|
111
112
|
static SetAsync(cache: IDistributedCache, key: string, value: byte[], token?: CancellationToken): Task;
|
|
112
113
|
static SetString(cache: IDistributedCache, key: string, value: string, options: DistributedCacheEntryOptions): void;
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
// Import internal declarations
|
|
6
6
|
import * as Internal from './Microsoft.Extensions.Caching.Distributed/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 { MemoryDistributedCacheOptions } from './Microsoft.Extensions.Caching.Memory/internal/index.js';
|
|
10
14
|
import type { ILoggerFactory } from './Microsoft.Extensions.Logging/internal/index.js';
|
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
// Namespace: Microsoft.Extensions.Caching.Hybrid
|
|
3
3
|
// Assembly: Microsoft.Extensions.Caching.Abstractions
|
|
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 { IBufferWriter_1, ReadOnlySequence_1 } from "@tsonic/dotnet/System.Buffers/internal/index.js";
|
|
@@ -30,7 +28,7 @@ export enum HybridCacheEntryFlags {
|
|
|
30
28
|
}
|
|
31
29
|
|
|
32
30
|
|
|
33
|
-
export interface IHybridCacheSerializer_1$instance<T> {
|
|
31
|
+
export interface IHybridCacheSerializer_1$instance<T extends unknown> {
|
|
34
32
|
readonly __tsonic_iface_Microsoft_Extensions_Caching_Hybrid_IHybridCacheSerializer_1: never;
|
|
35
33
|
|
|
36
34
|
Deserialize(source: ReadOnlySequence_1<System_Internal.Byte>): T;
|
|
@@ -38,12 +36,12 @@ export interface IHybridCacheSerializer_1$instance<T> {
|
|
|
38
36
|
}
|
|
39
37
|
|
|
40
38
|
|
|
41
|
-
export type IHybridCacheSerializer_1<T> = IHybridCacheSerializer_1$instance<T>;
|
|
39
|
+
export type IHybridCacheSerializer_1<T extends unknown> = IHybridCacheSerializer_1$instance<T>;
|
|
42
40
|
|
|
43
41
|
export interface IHybridCacheSerializerFactory$instance {
|
|
44
42
|
readonly __tsonic_iface_Microsoft_Extensions_Caching_Hybrid_IHybridCacheSerializerFactory: never;
|
|
45
43
|
|
|
46
|
-
TryCreateSerializer<T>(serializer: IHybridCacheSerializer_1<T>): boolean;
|
|
44
|
+
TryCreateSerializer<T extends unknown>(serializer: IHybridCacheSerializer_1<T> | null): boolean;
|
|
47
45
|
}
|
|
48
46
|
|
|
49
47
|
|
|
@@ -52,17 +50,17 @@ export type IHybridCacheSerializerFactory = IHybridCacheSerializerFactory$instan
|
|
|
52
50
|
export interface HybridCache$instance {
|
|
53
51
|
readonly __tsonic_type_Microsoft_Extensions_Caching_Hybrid_HybridCache: never;
|
|
54
52
|
|
|
55
|
-
GetOrCreateAsync<TState, T>(key: string, state: TState, factory: Func_3<TState, CancellationToken, ValueTask_1<T>>, options?: HybridCacheEntryOptions, tags?: IEnumerable_1<System_Internal.String
|
|
56
|
-
GetOrCreateAsync<T>(key: string, factory: Func_2<CancellationToken, ValueTask_1<T>>, options?: HybridCacheEntryOptions, tags?: IEnumerable_1<System_Internal.String
|
|
57
|
-
GetOrCreateAsync<T>(key: ReadOnlySpan_1<System_Internal.Char>, factory: Func_2<CancellationToken, ValueTask_1<T>>, options?: HybridCacheEntryOptions, tags?: IEnumerable_1<System_Internal.String
|
|
58
|
-
GetOrCreateAsync<TState, T>(key: ReadOnlySpan_1<System_Internal.Char>, state: TState, factory: Func_3<TState, CancellationToken, ValueTask_1<T>>, options?: HybridCacheEntryOptions, tags?: IEnumerable_1<System_Internal.String
|
|
59
|
-
GetOrCreateAsync<T>(key: DefaultInterpolatedStringHandler, factory: Func_2<CancellationToken, ValueTask_1<T>>, options?: HybridCacheEntryOptions, tags?: IEnumerable_1<System_Internal.String
|
|
60
|
-
GetOrCreateAsync<TState, T>(key: DefaultInterpolatedStringHandler, state: TState, factory: Func_3<TState, CancellationToken, ValueTask_1<T>>, options?: HybridCacheEntryOptions, tags?: IEnumerable_1<System_Internal.String
|
|
53
|
+
GetOrCreateAsync<TState extends unknown, T extends unknown>(key: string, state: TState, factory: Func_3<TState, CancellationToken, ValueTask_1<T>>, options?: HybridCacheEntryOptions | null, tags?: IEnumerable_1<System_Internal.String> | null, cancellationToken?: CancellationToken): ValueTask_1<T>;
|
|
54
|
+
GetOrCreateAsync<T extends unknown>(key: string, factory: Func_2<CancellationToken, ValueTask_1<T>>, options?: HybridCacheEntryOptions | null, tags?: IEnumerable_1<System_Internal.String> | null, cancellationToken?: CancellationToken): ValueTask_1<T>;
|
|
55
|
+
GetOrCreateAsync<T extends unknown>(key: ReadOnlySpan_1<System_Internal.Char>, factory: Func_2<CancellationToken, ValueTask_1<T>>, options?: HybridCacheEntryOptions | null, tags?: IEnumerable_1<System_Internal.String> | null, cancellationToken?: CancellationToken): ValueTask_1<T>;
|
|
56
|
+
GetOrCreateAsync<TState extends unknown, T extends unknown>(key: ReadOnlySpan_1<System_Internal.Char>, state: TState, factory: Func_3<TState, CancellationToken, ValueTask_1<T>>, options?: HybridCacheEntryOptions | null, tags?: IEnumerable_1<System_Internal.String> | null, cancellationToken?: CancellationToken): ValueTask_1<T>;
|
|
57
|
+
GetOrCreateAsync<T extends unknown>(key: DefaultInterpolatedStringHandler, factory: Func_2<CancellationToken, ValueTask_1<T>>, options?: HybridCacheEntryOptions | null, tags?: IEnumerable_1<System_Internal.String> | null, cancellationToken?: CancellationToken): ValueTask_1<T>;
|
|
58
|
+
GetOrCreateAsync<TState extends unknown, T extends unknown>(key: DefaultInterpolatedStringHandler, state: TState, factory: Func_3<TState, CancellationToken, ValueTask_1<T>>, options?: HybridCacheEntryOptions | null, tags?: IEnumerable_1<System_Internal.String> | null, cancellationToken?: CancellationToken): ValueTask_1<T>;
|
|
61
59
|
RemoveAsync(key: string, cancellationToken?: CancellationToken): ValueTask;
|
|
62
60
|
RemoveAsync(keys: IEnumerable_1<System_Internal.String>, cancellationToken?: CancellationToken): ValueTask;
|
|
63
61
|
RemoveByTagAsync(tags: IEnumerable_1<System_Internal.String>, cancellationToken?: CancellationToken): ValueTask;
|
|
64
62
|
RemoveByTagAsync(tag: string, cancellationToken?: CancellationToken): ValueTask;
|
|
65
|
-
SetAsync<T>(key: string, value: T, options?: HybridCacheEntryOptions, tags?: IEnumerable_1<System_Internal.String
|
|
63
|
+
SetAsync<T extends unknown>(key: string, value: T, options?: HybridCacheEntryOptions | null, tags?: IEnumerable_1<System_Internal.String> | null, cancellationToken?: CancellationToken): ValueTask;
|
|
66
64
|
}
|
|
67
65
|
|
|
68
66
|
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
// Import internal declarations
|
|
6
6
|
import * as Internal from './Microsoft.Extensions.Caching.Hybrid/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 { IBufferWriter, ReadOnlySequence } from '@tsonic/dotnet/System.Buffers.js';
|
|
10
14
|
import type { IEnumerable } from '@tsonic/dotnet/System.Collections.Generic.js';
|
|
@@ -17,5 +21,5 @@ import type { ValueTask } from '@tsonic/dotnet/System.Threading.Tasks.js';
|
|
|
17
21
|
export { HybridCache as HybridCache } from './Microsoft.Extensions.Caching.Hybrid/internal/index.js';
|
|
18
22
|
export { HybridCacheEntryFlags as HybridCacheEntryFlags } from './Microsoft.Extensions.Caching.Hybrid/internal/index.js';
|
|
19
23
|
export { HybridCacheEntryOptions as HybridCacheEntryOptions } from './Microsoft.Extensions.Caching.Hybrid/internal/index.js';
|
|
20
|
-
export type IHybridCacheSerializer<T> = Internal.IHybridCacheSerializer_1<T>;
|
|
24
|
+
export type IHybridCacheSerializer<T extends unknown> = Internal.IHybridCacheSerializer_1<T>;
|
|
21
25
|
export type IHybridCacheSerializerFactory = Internal.IHybridCacheSerializerFactory;
|
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
// Namespace: Microsoft.Extensions.Caching.Memory
|
|
3
3
|
// Assembly: Microsoft.Extensions.Caching.Abstractions, Microsoft.Extensions.Caching.Memory
|
|
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 { ISystemClock } from "../../Microsoft.Extensions.Internal/internal/index.js";
|
|
@@ -39,15 +37,15 @@ export enum EvictionReason {
|
|
|
39
37
|
}
|
|
40
38
|
|
|
41
39
|
|
|
42
|
-
export type PostEvictionDelegate = (key: unknown, value: unknown, reason: EvictionReason, state: unknown) => void;
|
|
40
|
+
export type PostEvictionDelegate = (key: unknown, value: unknown | null, reason: EvictionReason, state: unknown | null) => void;
|
|
43
41
|
|
|
44
42
|
|
|
45
43
|
export interface ICacheEntry$instance extends IDisposable {
|
|
46
44
|
readonly __tsonic_iface_Microsoft_Extensions_Caching_Memory_ICacheEntry: never;
|
|
47
45
|
|
|
48
46
|
readonly Key: unknown;
|
|
49
|
-
get Value(): unknown |
|
|
50
|
-
set Value(value: unknown |
|
|
47
|
+
get Value(): unknown | null;
|
|
48
|
+
set Value(value: unknown | null);
|
|
51
49
|
get AbsoluteExpiration(): Nullable_1<DateTimeOffset>;
|
|
52
50
|
set AbsoluteExpiration(value: Nullable_1<DateTimeOffset> | DateTimeOffset);
|
|
53
51
|
get AbsoluteExpirationRelativeToNow(): Nullable_1<TimeSpan>;
|
|
@@ -70,9 +68,9 @@ export interface IMemoryCache$instance extends IDisposable {
|
|
|
70
68
|
readonly __tsonic_iface_Microsoft_Extensions_Caching_Memory_IMemoryCache: never;
|
|
71
69
|
|
|
72
70
|
CreateEntry(key: unknown): ICacheEntry;
|
|
73
|
-
GetCurrentStatistics(): MemoryCacheStatistics |
|
|
71
|
+
GetCurrentStatistics(): MemoryCacheStatistics | null;
|
|
74
72
|
Remove(key: unknown): void;
|
|
75
|
-
TryGetValue(key: unknown, value: unknown): boolean;
|
|
73
|
+
TryGetValue(key: unknown, value: unknown | null): boolean;
|
|
76
74
|
}
|
|
77
75
|
|
|
78
76
|
|
|
@@ -94,11 +92,11 @@ export interface MemoryCache$instance {
|
|
|
94
92
|
Dispose(): void;
|
|
95
93
|
Dispose(disposing: boolean): void;
|
|
96
94
|
Finalize(): void;
|
|
97
|
-
GetCurrentStatistics(): MemoryCacheStatistics |
|
|
95
|
+
GetCurrentStatistics(): MemoryCacheStatistics | null;
|
|
98
96
|
Remove(key: unknown): void;
|
|
99
|
-
TryGetValue(key: unknown, result: unknown): boolean;
|
|
100
|
-
TryGetValue(key: ReadOnlySpan_1<System_Internal.Char>, value: unknown): boolean;
|
|
101
|
-
TryGetValue<TItem>(key: ReadOnlySpan_1<System_Internal.Char>, value: TItem): boolean;
|
|
97
|
+
TryGetValue(key: unknown, result: unknown | null): boolean;
|
|
98
|
+
TryGetValue(key: ReadOnlySpan_1<System_Internal.Char>, value: unknown | null): boolean;
|
|
99
|
+
TryGetValue<TItem extends unknown>(key: ReadOnlySpan_1<System_Internal.Char>, value: TItem | null): boolean;
|
|
102
100
|
}
|
|
103
101
|
|
|
104
102
|
|
|
@@ -144,8 +142,8 @@ export interface MemoryCacheOptions$instance extends Microsoft_Extensions_Option
|
|
|
144
142
|
|
|
145
143
|
readonly __tsonic_iface_Microsoft_Extensions_Options_IOptions_1: never;
|
|
146
144
|
|
|
147
|
-
get Clock(): ISystemClock |
|
|
148
|
-
set Clock(value: ISystemClock |
|
|
145
|
+
get Clock(): ISystemClock | null;
|
|
146
|
+
set Clock(value: ISystemClock | null);
|
|
149
147
|
CompactionPercentage: double;
|
|
150
148
|
CompactOnMemoryPressure: boolean;
|
|
151
149
|
ExpirationScanFrequency: TimeSpan;
|
|
@@ -209,10 +207,10 @@ export type MemoryDistributedCacheOptions = MemoryDistributedCacheOptions$instan
|
|
|
209
207
|
export interface PostEvictionCallbackRegistration$instance {
|
|
210
208
|
readonly __tsonic_type_Microsoft_Extensions_Caching_Memory_PostEvictionCallbackRegistration: never;
|
|
211
209
|
|
|
212
|
-
get EvictionCallback(): PostEvictionDelegate |
|
|
213
|
-
set EvictionCallback(value: PostEvictionDelegate |
|
|
214
|
-
get State(): unknown |
|
|
215
|
-
set State(value: unknown |
|
|
210
|
+
get EvictionCallback(): PostEvictionDelegate | null;
|
|
211
|
+
set EvictionCallback(value: PostEvictionDelegate | null);
|
|
212
|
+
get State(): unknown | null;
|
|
213
|
+
set State(value: unknown | null);
|
|
216
214
|
}
|
|
217
215
|
|
|
218
216
|
|
|
@@ -225,7 +223,7 @@ export type PostEvictionCallbackRegistration = PostEvictionCallbackRegistration$
|
|
|
225
223
|
|
|
226
224
|
export abstract class CacheEntryExtensions$instance {
|
|
227
225
|
static AddExpirationToken(entry: ICacheEntry, expirationToken: IChangeToken): ICacheEntry;
|
|
228
|
-
static RegisterPostEvictionCallback(entry: ICacheEntry, callback: PostEvictionDelegate, state: unknown): ICacheEntry;
|
|
226
|
+
static RegisterPostEvictionCallback(entry: ICacheEntry, callback: PostEvictionDelegate, state: unknown | null): ICacheEntry;
|
|
229
227
|
static RegisterPostEvictionCallback(entry: ICacheEntry, callback: PostEvictionDelegate): ICacheEntry;
|
|
230
228
|
static SetAbsoluteExpiration(entry: ICacheEntry, absolute: DateTimeOffset): ICacheEntry;
|
|
231
229
|
static SetAbsoluteExpiration(entry: ICacheEntry, relative: TimeSpan): ICacheEntry;
|
|
@@ -233,25 +231,25 @@ export abstract class CacheEntryExtensions$instance {
|
|
|
233
231
|
static SetPriority(entry: ICacheEntry, priority: CacheItemPriority): ICacheEntry;
|
|
234
232
|
static SetSize(entry: ICacheEntry, size: long): ICacheEntry;
|
|
235
233
|
static SetSlidingExpiration(entry: ICacheEntry, offset: TimeSpan): ICacheEntry;
|
|
236
|
-
static SetValue(entry: ICacheEntry, value: unknown): ICacheEntry;
|
|
234
|
+
static SetValue(entry: ICacheEntry, value: unknown | null): ICacheEntry;
|
|
237
235
|
}
|
|
238
236
|
|
|
239
237
|
|
|
240
238
|
export type CacheEntryExtensions = CacheEntryExtensions$instance;
|
|
241
239
|
|
|
242
240
|
export abstract class CacheExtensions$instance {
|
|
243
|
-
static Get(cache: IMemoryCache, key: unknown): unknown |
|
|
244
|
-
static Get<TItem>(cache: IMemoryCache, key: unknown): TItem |
|
|
245
|
-
static GetOrCreate<TItem>(cache: IMemoryCache, key: unknown, factory: Func_2<ICacheEntry, TItem>, createOptions: MemoryCacheEntryOptions): TItem |
|
|
246
|
-
static GetOrCreate<TItem>(cache: IMemoryCache, key: unknown, factory: Func_2<ICacheEntry, TItem>): TItem |
|
|
247
|
-
static GetOrCreateAsync<TItem>(cache: IMemoryCache, key: unknown, factory: Func_2<ICacheEntry, Task_1<TItem>>, createOptions: MemoryCacheEntryOptions): Task_1<TItem |
|
|
248
|
-
static GetOrCreateAsync<TItem>(cache: IMemoryCache, key: unknown, factory: Func_2<ICacheEntry, Task_1<TItem>>): Task_1<TItem |
|
|
249
|
-
static Set<TItem>(cache: IMemoryCache, key: unknown, value: TItem, options: MemoryCacheEntryOptions): TItem;
|
|
250
|
-
static Set<TItem>(cache: IMemoryCache, key: unknown, value: TItem, expirationToken: IChangeToken): TItem;
|
|
251
|
-
static Set<TItem>(cache: IMemoryCache, key: unknown, value: TItem, absoluteExpiration: DateTimeOffset): TItem;
|
|
252
|
-
static Set<TItem>(cache: IMemoryCache, key: unknown, value: TItem, absoluteExpirationRelativeToNow: TimeSpan): TItem;
|
|
253
|
-
static Set<TItem>(cache: IMemoryCache, key: unknown, value: TItem): TItem;
|
|
254
|
-
static TryGetValue<TItem>(cache: IMemoryCache, key: unknown, value: TItem): boolean;
|
|
241
|
+
static Get(cache: IMemoryCache, key: unknown): unknown | null;
|
|
242
|
+
static Get<TItem extends unknown>(cache: IMemoryCache, key: unknown): TItem | null;
|
|
243
|
+
static GetOrCreate<TItem extends unknown>(cache: IMemoryCache, key: unknown, factory: Func_2<ICacheEntry, TItem>, createOptions: MemoryCacheEntryOptions | null): TItem | null;
|
|
244
|
+
static GetOrCreate<TItem extends unknown>(cache: IMemoryCache, key: unknown, factory: Func_2<ICacheEntry, TItem>): TItem | null;
|
|
245
|
+
static GetOrCreateAsync<TItem extends unknown>(cache: IMemoryCache, key: unknown, factory: Func_2<ICacheEntry, Task_1<TItem>>, createOptions: MemoryCacheEntryOptions | null): Task_1<TItem | null>;
|
|
246
|
+
static GetOrCreateAsync<TItem extends unknown>(cache: IMemoryCache, key: unknown, factory: Func_2<ICacheEntry, Task_1<TItem>>): Task_1<TItem | null>;
|
|
247
|
+
static Set<TItem extends unknown>(cache: IMemoryCache, key: unknown, value: TItem, options: MemoryCacheEntryOptions | null): TItem;
|
|
248
|
+
static Set<TItem extends unknown>(cache: IMemoryCache, key: unknown, value: TItem, expirationToken: IChangeToken): TItem;
|
|
249
|
+
static Set<TItem extends unknown>(cache: IMemoryCache, key: unknown, value: TItem, absoluteExpiration: DateTimeOffset): TItem;
|
|
250
|
+
static Set<TItem extends unknown>(cache: IMemoryCache, key: unknown, value: TItem, absoluteExpirationRelativeToNow: TimeSpan): TItem;
|
|
251
|
+
static Set<TItem extends unknown>(cache: IMemoryCache, key: unknown, value: TItem): TItem;
|
|
252
|
+
static TryGetValue<TItem extends unknown>(cache: IMemoryCache, key: unknown, value: TItem | null): boolean;
|
|
255
253
|
}
|
|
256
254
|
|
|
257
255
|
|
|
@@ -259,7 +257,7 @@ export type CacheExtensions = CacheExtensions$instance;
|
|
|
259
257
|
|
|
260
258
|
export abstract class MemoryCacheEntryExtensions$instance {
|
|
261
259
|
static AddExpirationToken(options: MemoryCacheEntryOptions, expirationToken: IChangeToken): MemoryCacheEntryOptions;
|
|
262
|
-
static RegisterPostEvictionCallback(options: MemoryCacheEntryOptions, callback: PostEvictionDelegate, state: unknown): MemoryCacheEntryOptions;
|
|
260
|
+
static RegisterPostEvictionCallback(options: MemoryCacheEntryOptions, callback: PostEvictionDelegate, state: unknown | null): MemoryCacheEntryOptions;
|
|
263
261
|
static RegisterPostEvictionCallback(options: MemoryCacheEntryOptions, callback: PostEvictionDelegate): MemoryCacheEntryOptions;
|
|
264
262
|
static SetAbsoluteExpiration(options: MemoryCacheEntryOptions, absolute: DateTimeOffset): MemoryCacheEntryOptions;
|
|
265
263
|
static SetAbsoluteExpiration(options: MemoryCacheEntryOptions, relative: TimeSpan): MemoryCacheEntryOptions;
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
// Import internal declarations
|
|
6
6
|
import * as Internal from './Microsoft.Extensions.Caching.Memory/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 { ISystemClock } from './Microsoft.Extensions.Internal/internal/index.js';
|
|
10
14
|
import type { ILoggerFactory } from './Microsoft.Extensions.Logging/internal/index.js';
|