diff --git a/examples/src/app1.tsx b/examples/src/app1.tsx index f0f7525b571..d1ad54aa4e5 100644 --- a/examples/src/app1.tsx +++ b/examples/src/app1.tsx @@ -1,7 +1,7 @@ import { App } from "fresh"; import { Doc } from "./shared.tsx"; -export const app1 = new App() +export const app1: App = new App() .get("/", (ctx) => ctx.render( diff --git a/examples/src/app2.tsx b/examples/src/app2.tsx index 0829c9889d8..47737aceda3 100644 --- a/examples/src/app2.tsx +++ b/examples/src/app2.tsx @@ -1,7 +1,7 @@ import { App } from "fresh"; import { Doc } from "./shared.tsx"; -export const app2 = new App() +export const app2: App = new App() .get("/", (ctx) => ctx.render( diff --git a/examples/src/island.tsx b/examples/src/island.tsx index 4996b99bc33..c8ca15d4fcc 100644 --- a/examples/src/island.tsx +++ b/examples/src/island.tsx @@ -1,6 +1,7 @@ import { useSignal } from "@preact/signals"; +import type { JSX } from "preact"; -export default function DemoIsland() { +export default function DemoIsland(): JSX.Element { const count = useSignal(0); return (