@tstdl/base 0.91.7 → 0.91.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tstdl/base",
3
- "version": "0.91.7",
3
+ "version": "0.91.9",
4
4
  "author": "Patrick Hein",
5
5
  "publishConfig": {
6
6
  "access": "public"
package/signals/api.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import type { Tagged } from 'type-fest';
2
2
  import type * as Types from './implementation/index.js';
3
- export type { CreateComputedOptions, CreateEffectOptions, CreateSignalOptions, EffectCleanupRegisterFn, EffectRef, Signal, ToSignalOptions, WritableSignal } from './implementation/index.js';
4
- export type Injector = Tagged<symbol, 'injector'>;
5
- export type SignalsConfiguration<TInjector = Injector> = {
3
+ export type { CreateComputedOptions, CreateEffectOptions, CreateSignalOptions, EffectCleanupRegisterFn, EffectRef, Signal, ToObservableOptions, ToSignalOptions, WritableSignal } from './implementation/index.js';
4
+ export type SignalsInjector = Tagged<symbol, 'injector'>;
5
+ export type SignalsConfiguration<TInjector = SignalsInjector> = {
6
6
  signal: typeof Types.signal;
7
7
  computed: typeof Types.computed;
8
8
  effect: typeof Types.effect;
@@ -5,7 +5,7 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
- import type { Injector } from '../api.js';
8
+ import type { SignalsInjector } from '../api.js';
9
9
  /**
10
10
  * An effect can, optionally, register a cleanup function. If registered, the cleanup is executed
11
11
  * before the next effect run. The cleanup function makes it possible to "cancel" any work that the
@@ -59,7 +59,7 @@ export interface CreateEffectOptions {
59
59
  * If this is not provided, the current [injection context](guide/di/dependency-injection-context)
60
60
  * will be used instead (via `inject`).
61
61
  */
62
- injector?: Injector;
62
+ injector?: SignalsInjector;
63
63
  /**
64
64
  * Whether the `effect` should require manual cleanup.
65
65
  *
@@ -1,5 +1,5 @@
1
1
  import { Observable } from 'rxjs';
2
- import type { Injector } from '../api.js';
2
+ import type { SignalsInjector } from '../api.js';
3
3
  import type { Signal } from './api.js';
4
4
  /**
5
5
  * Options for `toObservable`.
@@ -13,7 +13,7 @@ export interface ToObservableOptions {
13
13
  * If this isn't specified, the current [injection context](guide/di/dependency-injection-context)
14
14
  * will be used.
15
15
  */
16
- injector?: Injector;
16
+ injector?: SignalsInjector;
17
17
  }
18
18
  /**
19
19
  * Exposes the value of an `Signal` as an RxJS `Observable`.
@@ -6,7 +6,7 @@
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
8
  import type { Observable, Subscribable } from 'rxjs';
9
- import { Injector } from '../api.js';
9
+ import { SignalsInjector } from '../api.js';
10
10
  import type { Signal } from './api.js';
11
11
  import { ValueEqualityFn } from './equality.js';
12
12
  export interface ToSignalOptions<T> {
@@ -31,7 +31,7 @@ export interface ToSignalOptions<T> {
31
31
  * If this is not provided, a `DestroyRef` will be retrieved from the current [injection
32
32
  * context](guide/di/dependency-injection-context), unless manual cleanup is requested.
33
33
  */
34
- injector?: Injector;
34
+ injector?: SignalsInjector;
35
35
  /**
36
36
  * Whether the subscription should be automatically cleaned up (via `DestroyRef`) when
37
37
  * `toSignal`'s creation context is destroyed.