Skip to content

Commit

Permalink
fix(common): make Resource type props readonly (#2516)
Browse files Browse the repository at this point in the history
  • Loading branch information
holic authored Apr 25, 2024
1 parent c74a664 commit f736c43
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/wise-cows-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@latticexyz/common": patch
---

`Resource` type props are now readonly.
8 changes: 4 additions & 4 deletions packages/common/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Hex } from "viem";
import { ResourceType } from "./resourceTypes";

export type Resource = {
resourceId: Hex;
type: ResourceType;
namespace: string;
name: string;
readonly resourceId: Hex;
readonly type: ResourceType;
readonly namespace: string;
readonly name: string;
};

0 comments on commit f736c43

Please sign in to comment.