Compare commits

..

No commits in common. "1e7a347c83d23101a2e2063dfd467b60ecc8c085" and "93c050c5adbf2bba865b62fba74207b1b6703912" have entirely different histories.

View File

@ -20,6 +20,17 @@ let { SetVersion, GoChangeRoute, GoSetStatus } = window as unknown as GoCallback
let w = window as unknown as GoCallback; let w = window as unknown as GoCallback;
// var register = function <Type>(name: string): void {
// const event = new CustomEvent<Type>(`${name}_Callback`, {
// detail: value
// })
// document.dispatchEvent(event)
// };
// w.SetVersion = register<string>('SetVersion')
(<GoCallback>(<unknown>window)).GoChangeRoute = function <T>(value: T): void { (<GoCallback>(<unknown>window)).GoChangeRoute = function <T>(value: T): void {
const event = new CustomEvent<T>('GoChangeRoute_Callback', { const event = new CustomEvent<T>('GoChangeRoute_Callback', {
detail: value, detail: value,