Skip to content

Commit

Permalink
Revert "docs(demo): remove unnecessary window declaration"
Browse files Browse the repository at this point in the history
This reverts commit ba5e2a9.
  • Loading branch information
timmywil committed Jul 7, 2020
1 parent d74d1fe commit bd299d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions demo/global-panzoom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@ import Panzoom from '../src/panzoom'
console.log('This is a demo version of Panzoom for testing.')
console.log('It exposes a global (window.Panzoom) and should not be used in production.')

declare global {
interface Window {
Panzoom: typeof Panzoom
}
}
window.Panzoom = Panzoom

0 comments on commit bd299d8

Please sign in to comment.