Skip to content

Commit

Permalink
dev tools
Browse files Browse the repository at this point in the history
  • Loading branch information
holic committed Mar 20, 2024
1 parent 57cb281 commit 45424cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/dev-tools/src/common.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Observable } from "rxjs";
import { Abi, Block, Chain, PublicClient, Transport, WalletClient } from "viem";
import { StoreConfig } from "@latticexyz/store";
import { Store as StoreConfig } from "@latticexyz/store/config/v2";
import { StorageAdapterBlock } from "@latticexyz/store-sync";
import { ZustandStore } from "@latticexyz/store-sync/zustand";
import { ContractWrite } from "@latticexyz/common";
Expand Down
6 changes: 3 additions & 3 deletions packages/dev-tools/src/mount.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type { StoreConfig } from "@latticexyz/store";
import type { Store as StoreConfig } from "@latticexyz/store/config/v2";
import type { DevToolsOptions } from "./common";

const containerId = "mud-dev-tools";

// TODO: rework to always return a unmount function (not a promise or possibly undefined)
export async function mount<TConfig extends StoreConfig>(
opts: DevToolsOptions<TConfig>,
export async function mount<config extends StoreConfig>(
opts: DevToolsOptions<config>,
): Promise<(() => void) | undefined> {
if (typeof window === "undefined") {
console.warn("MUD dev-tools should only be used in browser bundles");
Expand Down

0 comments on commit 45424cd

Please sign in to comment.