Since we haven't locked down v4 on a specific TypeScript version, this may have now broke with a newer TS version. The only useful information I found about this property was in a VS Code issue (see https://github.com/microsoft/vscode/issues/64965), which recommends to use the .target property instead of .toElement.
Since we haven't locked down v4 on a specific TypeScript version, this may have now broke with a newer TS version. The only useful information I found about this property was in a VS Code issue (see https://github.com/microsoft/vscode/issues/64965), which recommends to use the
.target
property instead of.toElement
.