From 8445e13db1b60b5d52cc010e645cefe07b3d4e64 Mon Sep 17 00:00:00 2001 From: Abhishiv Saxena Date: Mon, 7 Aug 2023 04:01:13 +0530 Subject: [PATCH] Update experimental.ts --- src/core/state/experimental.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/core/state/experimental.ts b/src/core/state/experimental.ts index 10c5d04..f11c299 100644 --- a/src/core/state/experimental.ts +++ b/src/core/state/experimental.ts @@ -11,6 +11,7 @@ import { import * as Constants from "../constants"; import { getValueUsingPath } from "../../utils/index"; +export type { ObjPathProxy } from "../../utils/observer"; export { getProxyMeta, getProxyPath } from "../../utils/observer"; export type Signal = { @@ -83,7 +84,7 @@ export type WireFunction = { }; export type WireFactory = ( - arg: WireFunction | Signal //| StoreCursor + arg: WireFunction | Signal, //| StoreCursor ) => Wire; // Symbol() doesn't gzip well. `[] as const` gzips best but isn't debuggable @@ -126,7 +127,7 @@ export const wire: WireFactory = (arg) => { const runWire = ( arg: WireFunction | Signal | StoreCursor, token: SubToken, - subWireFactory: WireFactory + subWireFactory: WireFactory, ) => { if (isProxy(arg)) { const cursor = arg as StoreCursor; @@ -296,7 +297,7 @@ export const reify = (cursor: T): extractGeneric => { export const produce = ( cursor: T, - setter: (obj: extractGeneric) => void + setter: (obj: extractGeneric) => void, ): void => { const v = reify(cursor); setter(v);