diff --git a/.changeset/wise-cows-check.md b/.changeset/wise-cows-check.md new file mode 100644 index 0000000000..d253df9bc9 --- /dev/null +++ b/.changeset/wise-cows-check.md @@ -0,0 +1,5 @@ +--- +"@latticexyz/common": patch +--- + +`Resource` type props are now readonly. diff --git a/packages/common/src/common.ts b/packages/common/src/common.ts index 04710d0405..b89a8f8ce7 100644 --- a/packages/common/src/common.ts +++ b/packages/common/src/common.ts @@ -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; };