Open hanakannzashi opened 1 year ago
Currently follow code will succeeded without throwing an error
class Test extends AssignableStruct { @field({ type: 'u32' }) declare arr: string[] } async function main() { const buffer = serialize(new Test({ arr: ['hello', 'world'] })) console.log(buffer) const data = deserialize(buffer, Test) console.log(data) }
<Buffer 00 00 00 00> Test { arr: 0 }
Expected: throw an error
Thanks for creating this issue. Will look into this.
Currently follow code will succeeded without throwing an error
Expected: throw an error