@signaltree/core 6.0.7 → 6.0.10
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 +1 -1
- package/src/lib/signal-tree.d.ts +2 -2
- package/src/lib/types.d.ts +1 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signaltree/core",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.10",
|
|
4
4
|
"description": "Lightweight, type-safe signal-based state management for Angular. Core package providing hierarchical signal trees, basic entity management, and async actions.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
package/src/lib/signal-tree.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { TreeConfig, NodeAccessor,
|
|
1
|
+
import type { TreeConfig, NodeAccessor, ISignalTree } from './types';
|
|
2
2
|
export declare function isNodeAccessor(value: unknown): value is NodeAccessor<unknown>;
|
|
3
|
-
export declare function signalTree<T extends object>(initialState: T, config?: TreeConfig):
|
|
3
|
+
export declare function signalTree<T extends object>(initialState: T, config?: TreeConfig): ISignalTree<T>;
|
package/src/lib/types.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { Signal, WritableSignal } from '@angular/core';
|
|
2
|
-
|
|
3
2
|
import { SecurityValidatorConfig } from './security/security-validator';
|
|
4
|
-
|
|
5
3
|
export interface TimeTravelConfig {
|
|
6
4
|
enabled?: boolean;
|
|
7
5
|
maxHistorySize?: number;
|
|
@@ -39,7 +37,7 @@ export type TreeNode<T> = {
|
|
|
39
37
|
export interface ISignalTree<T> extends NodeAccessor<T> {
|
|
40
38
|
readonly state: TreeNode<T>;
|
|
41
39
|
readonly $: TreeNode<T>;
|
|
42
|
-
with<
|
|
40
|
+
with<R>(enhancer: (tree: this) => R): R;
|
|
43
41
|
bind(thisArg?: unknown): NodeAccessor<T>;
|
|
44
42
|
destroy(): void;
|
|
45
43
|
}
|