diff --git a/v3/internal/templates/base/frontend/main.js b/v3/internal/templates/base/frontend/main.js index c24b3b1ef3a..729e4089557 100644 --- a/v3/internal/templates/base/frontend/main.js +++ b/v3/internal/templates/base/frontend/main.js @@ -16,6 +16,6 @@ window.doGreet = () => { }); } -Events.On('time', (time) => { - timeElement.innerText = time.data; +Events.On('time', (timeValue) => { + timeElement.innerText = timeValue.data; }); diff --git a/v3/internal/templates/lit-ts/frontend/src/my-element.ts b/v3/internal/templates/lit-ts/frontend/src/my-element.ts index de6c56c5d5b..38abeba8996 100644 --- a/v3/internal/templates/lit-ts/frontend/src/my-element.ts +++ b/v3/internal/templates/lit-ts/frontend/src/my-element.ts @@ -23,7 +23,7 @@ export class MyElement extends LitElement { constructor() { super(); - Events.On('time', (timeValue: { data: string }) => { + Events.On('time', (timeValue) => { this.time = timeValue.data; }); } diff --git a/v3/internal/templates/preact-ts/frontend/src/app.tsx b/v3/internal/templates/preact-ts/frontend/src/app.tsx index 93fab58d331..dfab19c798f 100644 --- a/v3/internal/templates/preact-ts/frontend/src/app.tsx +++ b/v3/internal/templates/preact-ts/frontend/src/app.tsx @@ -20,7 +20,7 @@ export function App() { } useEffect(() => { - Events.On('time', (timeValue: any) => { + Events.On('time', (timeValue) => { setTime(timeValue.data); }); }, []); diff --git a/v3/internal/templates/qwik-ts/frontend/src/app.tsx b/v3/internal/templates/qwik-ts/frontend/src/app.tsx index 3315315c281..e58e967afde 100644 --- a/v3/internal/templates/qwik-ts/frontend/src/app.tsx +++ b/v3/internal/templates/qwik-ts/frontend/src/app.tsx @@ -20,7 +20,7 @@ export const App = component$(() => { } useVisibleTask$(() => { - Events.On('time', (timeValue: any) => { + Events.On('time', (timeValue) => { time.value = timeValue.data; }); // Reload WML so it picks up the wml tags diff --git a/v3/internal/templates/react-swc-ts/frontend/src/App.tsx b/v3/internal/templates/react-swc-ts/frontend/src/App.tsx index 5706ca1c41c..907989f5a81 100644 --- a/v3/internal/templates/react-swc-ts/frontend/src/App.tsx +++ b/v3/internal/templates/react-swc-ts/frontend/src/App.tsx @@ -20,7 +20,7 @@ function App() { } useEffect(() => { - Events.On('time', (timeValue: any) => { + Events.On('time', (timeValue) => { setTime(timeValue.data); }); // Reload WML so it picks up the wml tags diff --git a/v3/internal/templates/react-ts/frontend/src/App.tsx b/v3/internal/templates/react-ts/frontend/src/App.tsx index edc81f820a7..abaac74f31e 100644 --- a/v3/internal/templates/react-ts/frontend/src/App.tsx +++ b/v3/internal/templates/react-ts/frontend/src/App.tsx @@ -20,7 +20,7 @@ function App() { } useEffect(() => { - Events.On('time', (timeValue: any) => { + Events.On('time', (timeValue) => { setTime(timeValue.data); }); // Reload WML so it picks up the wml tags diff --git a/v3/internal/templates/solid-ts/frontend/src/App.tsx b/v3/internal/templates/solid-ts/frontend/src/App.tsx index 5027e8c1d1d..b76207e20c2 100644 --- a/v3/internal/templates/solid-ts/frontend/src/App.tsx +++ b/v3/internal/templates/solid-ts/frontend/src/App.tsx @@ -20,7 +20,7 @@ function App() { } onMount(() => { - Events.On('time', (timeValue: any) => { + Events.On('time', (timeValue) => { setTime(timeValue.data); }); }); diff --git a/v3/internal/templates/svelte-ts/frontend/src/App.svelte b/v3/internal/templates/svelte-ts/frontend/src/App.svelte index 2a73938b012..f622d77a4dd 100644 --- a/v3/internal/templates/svelte-ts/frontend/src/App.svelte +++ b/v3/internal/templates/svelte-ts/frontend/src/App.svelte @@ -18,7 +18,7 @@ }); } - Events.On('time', (timeValue: any) => { + Events.On('time', (timeValue) => { time = timeValue.data; }); diff --git a/v3/internal/templates/vanilla-ts/frontend/src/main.ts b/v3/internal/templates/vanilla-ts/frontend/src/main.ts index 2e82cc21fd7..0c71df19ef6 100644 --- a/v3/internal/templates/vanilla-ts/frontend/src/main.ts +++ b/v3/internal/templates/vanilla-ts/frontend/src/main.ts @@ -18,6 +18,6 @@ greetButton.addEventListener('click', () => { }); }); -Events.On('time', (time: {data: any}) => { +Events.On('time', (time) => { timeElement.innerText = time.data; }); diff --git a/v3/internal/templates/vanilla/frontend/main.js b/v3/internal/templates/vanilla/frontend/main.js index c24b3b1ef3a..729e4089557 100644 --- a/v3/internal/templates/vanilla/frontend/main.js +++ b/v3/internal/templates/vanilla/frontend/main.js @@ -16,6 +16,6 @@ window.doGreet = () => { }); } -Events.On('time', (time) => { - timeElement.innerText = time.data; +Events.On('time', (timeValue) => { + timeElement.innerText = timeValue.data; }); diff --git a/v3/internal/templates/vue-ts/frontend/src/components/HelloWorld.vue b/v3/internal/templates/vue-ts/frontend/src/components/HelloWorld.vue index e73e33e2336..0fdb9463544 100644 --- a/v3/internal/templates/vue-ts/frontend/src/components/HelloWorld.vue +++ b/v3/internal/templates/vue-ts/frontend/src/components/HelloWorld.vue @@ -22,7 +22,7 @@ const doGreet = () => { } onMounted(() => { - Events.On('time', (timeValue: { data: string }) => { + Events.On('time', (timeValue) => { time.value = timeValue.data; }); })