It should be possible to assign readonly arrays directly to papr payload-accepting methods.
Instead, we get a type error;
const payload: { list: readonly number[] } = { list: [456] };
// The type 'readonly number[]' is 'readonly' and cannot be assigned to the mutable type 'number[]'.
await simpleModel.updateOne({ foo: 'foo' }, { $set: payload });
🐞 Permit
readonly
arraysIt should be possible to assign readonly arrays directly to papr payload-accepting methods. Instead, we get a type error;