Skip to content

Commit

Permalink
Merge pull request #1567 from riganti/feature/dotvvm-global-extensions
Browse files Browse the repository at this point in the history
Add the DotvvmGlobalExtensions interface
  • Loading branch information
exyi authored Feb 1, 2023
2 parents a7a2f9f + a263c47 commit 61e696f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Framework/Framework/Resources/Scripts/dotvvm-root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,16 @@ if (compileConstants.debug) {
(dotvvmExports as any).debug = true
}



declare global {
const dotvvm: typeof dotvvmExports & {debug?: true, isSpaReady?: typeof isSpaReady, handleSpaNavigation?: typeof handleSpaNavigation};
interface DotvvmGlobalExtensions {}
type DotvvmGlobal = DotvvmGlobalExtensions & typeof dotvvmExports & { debug?: true, isSpaReady?: typeof isSpaReady, handleSpaNavigation?: typeof handleSpaNavigation }

const dotvvm: DotvvmGlobal;

interface Window {
dotvvm: typeof dotvvmExports
dotvvm: DotvvmGlobal
}
}

Expand Down

0 comments on commit 61e696f

Please sign in to comment.