Skip to content

Commit

Permalink
world config is a wrapper for store config
Browse files Browse the repository at this point in the history
  • Loading branch information
alvrs committed Mar 7, 2024
1 parent 927fe85 commit 546cbec
Show file tree
Hide file tree
Showing 7 changed files with 642 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/store/ts/config/v2/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import { AbiType, AbiTypeScope, extendScope } from "./scope";
import { TableInput, resolveTableConfig, validateTableConfig } from "./table";
import { get } from "./generics";

type UserTypes = Dict<string, AbiType>;
type Enums = Dict<string, string[]>;
export type UserTypes = Dict<string, AbiType>;
export type Enums = Dict<string, string[]>;

export type StoreConfigInput<userTypes extends UserTypes = UserTypes, enums extends Enums = Enums> = {
namespace: string;
tables: StoreTablesConfigInput<scopeWithUserTypes<userTypes>>;
userTypes?: userTypes;
enums?: enums;
Expand Down
2 changes: 2 additions & 0 deletions packages/world/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,13 @@
"test:ci": "pnpm run test"
},
"dependencies": {
"@arktype/util": "0.0.25",
"@latticexyz/common": "workspace:*",
"@latticexyz/config": "workspace:*",
"@latticexyz/schema-type": "workspace:*",
"@latticexyz/store": "workspace:*",
"abitype": "1.0.0",
"arktype": "1.0.29-alpha",
"viem": "2.7.12",
"zod": "^3.21.4"
},
Expand Down
Loading

0 comments on commit 546cbec

Please sign in to comment.