Closed
Description
Feature request
{
"rules": {
"@typescript-eslint/no-delete-optional": ["error"]
}
}
type SomeType = { a: string };
const someObject: SomeType = {
a: string;
}
delete someObject.a;
someObject.a.toString();
Expected Result
Should throw a compile error deleting non-optional property 'a'
Actual Result
Runtime error can't read property 'toString' of undefined