fix: add explicit return types to examples (#2556)

This commit is contained in:
Marvin Hagemeister
2024-06-28 16:07:39 +02:00
committed by GitHub
parent 9fe48d4e74
commit 8699586e63
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import { App } from "fresh";
import { Doc } from "./shared.tsx";
export const app1 = new App()
export const app1: App<unknown> = new App()
.get("/", (ctx) =>
ctx.render(
<Doc>
+1 -1
View File
@@ -1,7 +1,7 @@
import { App } from "fresh";
import { Doc } from "./shared.tsx";
export const app2 = new App()
export const app2: App<unknown> = new App()
.get("/", (ctx) =>
ctx.render(
<Doc>
+2 -1
View File
@@ -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 (