@@ -9,7 +9,7 @@ import { getKeySchema, getValueSchema } from "@latticexyz/protocol-parser/intern
9
9
describe ( "validateKeys" , ( ) => {
10
10
it ( "should return a tuple of valid keys" , ( ) => {
11
11
attest <
12
- [ "static" ] ,
12
+ readonly [ "static" ] ,
13
13
validateKeys < getStaticAbiTypeKeys < { static : "uint256" ; dynamic : "string" } , AbiTypeScope > , [ "static" ] >
14
14
> ( ) ;
15
15
} ) ;
@@ -18,7 +18,7 @@ describe("validateKeys", () => {
18
18
const scope = extendScope ( AbiTypeScope , { static : "address" , dynamic : "string" } ) ;
19
19
20
20
attest <
21
- [ "static" , "customStatic" ] ,
21
+ readonly [ "static" , "customStatic" ] ,
22
22
validateKeys <
23
23
getStaticAbiTypeKeys <
24
24
{ static : "uint256" ; dynamic : "string" ; customStatic : "static" ; customDynamic : "dynamic" } ,
@@ -33,7 +33,7 @@ describe("validateKeys", () => {
33
33
const scope = extendScope ( AbiTypeScope , { static : "address" , dynamic : "string" } ) ;
34
34
35
35
attest <
36
- [ "static" , "customStatic" ] ,
36
+ readonly [ "static" , "customStatic" ] ,
37
37
validateKeys <
38
38
getStaticAbiTypeKeys <
39
39
{ static : "uint256" ; dynamic : "string" ; customStatic : "static" ; customDynamic : "dynamic" } ,
@@ -218,13 +218,13 @@ describe("resolveTable", () => {
218
218
attest ( ( ) =>
219
219
defineTable ( {
220
220
schema : { id : "address" } ,
221
- // @ts -expect-error Type 'string' is not assignable to type 'string[]'
221
+ // @ts -expect-error Type 'string' is not assignable to type 'readonly string[]'
222
222
key : "" ,
223
223
name : "" ,
224
224
} ) ,
225
225
)
226
226
. throws ( 'Invalid key. Expected `("id")[]`, received ``' )
227
- . type . errors ( "Type 'string' is not assignable to type 'string[]'" ) ;
227
+ . type . errors ( "Type 'string' is not assignable to type 'readonly string[]'" ) ;
228
228
} ) ;
229
229
230
230
it ( "should throw if a string is provided as schema" , ( ) => {
0 commit comments