DEV Community

Discussion on: Push Notifications in ReactJS with OneSignal

Collapse
 
danishalikhan688 profile image
danishalikhan688

window.OneSignal = window.OneSignal || [];
Showing error in app.tsx

Collapse
 
pcast01 profile image
Paul

I used this code from: stackoverflow.com/questions/564579...

declare global {
interface Window {
OneSignal: any;
}
}