Skip to content

Commit

Permalink
const dotvvm and window.dotvvm should have the same type
Browse files Browse the repository at this point in the history
  • Loading branch information
exyi committed Feb 1, 2023
1 parent cf2cb80 commit a263c47
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Framework/Framework/Resources/Scripts/dotvvm-root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,12 @@ if (compileConstants.debug) {

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

const dotvvm: DotvvmGlobalExtensions & typeof dotvvmExports & {debug?: true, isSpaReady?: typeof isSpaReady, handleSpaNavigation?: typeof handleSpaNavigation};
const dotvvm: DotvvmGlobal;

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

Expand Down

0 comments on commit a263c47

Please sign in to comment.