You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should be possible to assign readonly arrays directly to papr payload-accepting methods.
Instead, we get a type error;
constpayload: {list: readonlynumber[]}={list: [456]};// The type 'readonly number[]' is 'readonly' and cannot be assigned to the mutable type 'number[]'.awaitsimpleModel.updateOne({foo: 'foo'},{$set: payload});
The text was updated successfully, but these errors were encountered:
🐞 Permit
readonly
arraysIt should be possible to assign readonly arrays directly to papr payload-accepting methods.
Instead, we get a type error;
The text was updated successfully, but these errors were encountered: