@fhss-web-team/frontend-utils 2.1.5 → 2.1.6

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.
@@ -1,4 +1,4 @@
1
- import { Injector, Signal, ValueEqualityFn } from "@angular/core";
1
+ import { Injector, ValueEqualityFn, WritableSignal } from "@angular/core";
2
2
  export type ResolverDef = {
3
3
  input: any;
4
4
  output: any;
@@ -36,15 +36,15 @@ type _TrpcResource<TDef extends ResolverDef> = {
36
36
  * Signal of the tRPC procedure output, when available.
37
37
  * This value will persist while the tRPCResource is loading.
38
38
  */
39
- value: Signal<TDef["output"] | undefined>;
39
+ value: WritableSignal<TDef["output"] | undefined>;
40
40
  /**
41
41
  * Signal of the tRPC procedure error, when available.
42
42
  */
43
- error: Signal<TDef['errorShape'] | undefined>;
43
+ error: WritableSignal<TDef['errorShape'] | undefined>;
44
44
  /**
45
45
  * Whether this trpcResource is loading a new value (or reloading the existing one).
46
46
  */
47
- isLoading: Signal<boolean>;
47
+ isLoading: WritableSignal<boolean>;
48
48
  /**
49
49
  * Instructs the trpcResource to call the procedure with the current reactive dependencies.
50
50
  * @param abortSignal Optional abort signal to abort the procedure call.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fhss-web-team/frontend-utils",
3
- "version": "2.1.5",
3
+ "version": "2.1.6",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.0",
6
6
  "@angular/core": "^19.2.0"