by vicapow · 7y ago · 0 comments
type A = { readonly prop: number }; type B = { prop: number };
function func(f: B) { f.prop = 20; return f; }
const a: A = { prop: 10 }; func(a); // no error?
No comments yet.