You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Patrick Rodgers edited this page Mar 5, 2017
·
1 revision
If you are working with a project where you are not importing the sp-pnp-js library rather using it in the global capacity you will not immediately have typings available. To address this you can add a new file, pnp-global-shim.d.ts, to your project tree with the below contents. Starting with version 2.0.2 this file will be included in the dist folder.
This relies on the pnp.d.ts files being in the same directory as the shim file you just created. The next step is to update your project's references to use the shim, as shown in the below sample: