feat: module selection

Co-authored-by: Copilot <[email protected]>
This commit is contained in:
TrèsAbhiandCopilot committed 2026-04-28 16:56:38 -05:00
1 parent 272824a72f
commit 4b7b8b3392
9 files changed
+109 -38

No files matched your search

+2 -2
View File
@@ -11,7 +11,7 @@ export class Varuna<Type, Arguments = void> {
constructor(
private creator: Type | ((...args: Arguments[]) => Type),
private persistence?: string
private persistence?: string,
) {
if (typeof creator !== "function") this.initialize(creator);
}
@@ -100,7 +100,7 @@ export class Varuna<Type, Arguments = void> {
}
use<Slice = Type>(
slicer: (state: Type) => Slice = (state) => state as unknown as Slice
slicer: (state: Type) => Slice = (state) => state as unknown as Slice,
) {
return this.useDeferred(slicer, slicer(this.state));
}