Skip to content

Commit

Permalink
Update experimental.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishiv committed Aug 6, 2023
1 parent 9b25696 commit 8445e13
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/core/state/experimental.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<T = unknown> = {
Expand Down Expand Up @@ -83,7 +84,7 @@ export type WireFunction<T = unknown> = {
};

export type WireFactory<T = any> = (
arg: WireFunction<T> | Signal<T> //| StoreCursor
arg: WireFunction<T> | Signal<T>, //| StoreCursor
) => Wire<T>;

// Symbol() doesn't gzip well. `[] as const` gzips best but isn't debuggable
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -296,7 +297,7 @@ export const reify = <T = unknown>(cursor: T): extractGeneric<T> => {

export const produce = <T = unknown>(
cursor: T,
setter: (obj: extractGeneric<T>) => void
setter: (obj: extractGeneric<T>) => void,
): void => {
const v = reify(cursor);
setter(v);
Expand Down

1 comment on commit 8445e13

@vercel
Copy link

@vercel vercel bot commented on 8445e13 Aug 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

rocky7 – ./

rocky7-abhishiv.vercel.app
rocky7-git-master-abhishiv.vercel.app
rocky7.vercel.app

Please sign in to comment.