Package Exports
- spcrossdomainajax
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (spcrossdomainajax) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme

SPCrossDomainAJAX is a convenience wrapper for SharePoint's built in AJAX API. This package is built for use in SharePoint 2016 and SharePoint Online. Cross Domain AJAX Requests are implemented using the generic interface ISPCrossDomainAJAX<T, K> T is the data type of the data to be passed in the request body. K is the data type of the data to be returned in the promise from Execute. Two classes are included that implement the the generic interface ISPCrossDomainAJAX<T, K>
- SPCrossDomainAJAX<T, K>
- OnDemandSPCrossDomainAJAX<T, K>
Use the class OnDemandSPCrossDomainAJAX<T, K> in cases where you have not explicitly loaded the SharePoint javascript files SP.Runtime.js and SP.JS. If You don't know what your doing using OnDemandSPCrossDomainAJAX<T, K> is the best bet.
Use the class SPCrossDomainAJAX<T, K> when you have already explicity loaded the SharePoint javascript files SP.Runtime.js and SP.JS.
This package was built on Windows 10