Because my CRM code runs in a webresource, I have to write
window.parent.Xrm.Page...etc
to retrieve the entity's data.
Regrettably, that expression fails to compile when I'm writing typescript. Currently I insert window.parent ahead of Xrm.Page...(the Xrm typings are installed) manually, which rather defeats the point of TypeScript. Could typings, or another approach, allow me to access window.parent.Xrm cleanly in the usual way? My editor is Visual Studio