fix: add explicit return types to examples (#2556)
This commit is contained in:
@@ -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,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>
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user