Error in useParagonGlobal with Typescript
prateekjain98 opened this issue · comments
You might want to add this to tell TS that paragon object exists in global window:
declare global {
interface Window {
paragon: any
}
}
Actually, I found the type definitions here:
https://github.com/useparagon/paragon-integrations-catalog-tutorial/blob/master/src/paragon.d.ts
Good find @nrayamajhee, and thanks for flagging @prateekjain98 - I just updated this repository to use our new npm package, which ships with our official TS types.
If you're already using the <script>
tag or importing our types via a global types file, see our migration instructions in the docs: https://docs.useparagon.com/getting-started/installing-the-connect-sdk
Thanks!