Machen Sie die Objekteigenschaften readonly typescript
//Readonly
type MyReadonly<T> = {
readonly [K in keyof T]: T[K];
};
interface TodoRead {
title: string;
description: string;
}
const todoRead: MyReadonly<TodoRead> = {
title: 'Hey',
description: 'foobar',
};
Husnain Syed