Skip to content

Commit

Permalink
fix ts errors
Browse files Browse the repository at this point in the history
  • Loading branch information
karooolis committed Aug 5, 2024
1 parent 25714f4 commit b835e1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { getFieldIdx } from "./utils/getFieldIdx";
type Props = {
name: string;
value: string;
keyTuple: [string];
keyTuple: string[];
config: TableConfig;
};

Expand Down
5 changes: 4 additions & 1 deletion packages/world-explorer/src/app/(home)/utils/getFieldIdx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import {
isStaticAbiType,
} from "@latticexyz/schema-type/internal";

export function getFieldIdx(valueSchema, fieldName) {
export function getFieldIdx(
valueSchema: Record<string, string>,
fieldName: string,
) {
const fieldNames = [
...Object.entries(valueSchema)
.filter(([, fieldType]) => isStaticAbiType(fieldType))
Expand Down

0 comments on commit b835e1e

Please sign in to comment.