I had a class/type called Report
that's used throughout the codebase. Recently, TS started resolving Report
as a built-in class: https://developer.mozilla.org/en-US/docs/Web/API/Report. Don't know if it's because of a TS update. The type for the built-in Report
is in typescript/lib/lib.dom.d.ts
.
I'll probably need to rename my Report
to something else. However, out of curiosity, is it possible to overwrite the built-in Report
type? I.e. erase the type declaration so I can declare my type.