@tstdl/base 0.91.6 → 0.91.7

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 (2) hide show
  1. package/package.json +1 -1
  2. package/signals/api.d.ts +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tstdl/base",
3
- "version": "0.91.6",
3
+ "version": "0.91.7",
4
4
  "author": "Patrick Hein",
5
5
  "publishConfig": {
6
6
  "access": "public"
package/signals/api.d.ts CHANGED
@@ -2,7 +2,7 @@ import type { Tagged } from 'type-fest';
2
2
  import type * as Types from './implementation/index.js';
3
3
  export type { CreateComputedOptions, CreateEffectOptions, CreateSignalOptions, EffectCleanupRegisterFn, EffectRef, Signal, ToSignalOptions, WritableSignal } from './implementation/index.js';
4
4
  export type Injector = Tagged<symbol, 'injector'>;
5
- export type SignalsConfiguration = {
5
+ export type SignalsConfiguration<TInjector = Injector> = {
6
6
  signal: typeof Types.signal;
7
7
  computed: typeof Types.computed;
8
8
  effect: typeof Types.effect;
@@ -10,8 +10,8 @@ export type SignalsConfiguration = {
10
10
  isSignal: typeof Types.isSignal;
11
11
  toSignal: typeof Types.toSignal;
12
12
  toObservable: typeof Types.toObservable;
13
- getCurrentSignalsInjector: () => Injector;
14
- runInSignalsInjectionContext: <ReturnT>(injector: Injector, fn: () => ReturnT) => ReturnT;
13
+ getCurrentSignalsInjector: () => TInjector;
14
+ runInSignalsInjectionContext: <ReturnT>(injector: TInjector, fn: () => ReturnT) => ReturnT;
15
15
  };
16
16
  export declare let signal: typeof Types.signal;
17
17
  export declare let computed: typeof Types.computed;
@@ -22,4 +22,4 @@ export declare let toSignal: typeof Types.toSignal;
22
22
  export declare let toObservable: typeof Types.toObservable;
23
23
  export declare let getCurrentSignalsInjector: SignalsConfiguration['getCurrentSignalsInjector'];
24
24
  export declare let runInSignalsInjectionContext: SignalsConfiguration['runInSignalsInjectionContext'];
25
- export declare function configureSignals(configuration: SignalsConfiguration): void;
25
+ export declare function configureSignals<TInjector>(configuration: SignalsConfiguration<TInjector>): void;