fix: add explicit return types to examples (#2556)
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import { App } from "fresh";
|
import { App } from "fresh";
|
||||||
import { Doc } from "./shared.tsx";
|
import { Doc } from "./shared.tsx";
|
||||||
|
|
||||||
export const app1 = new App()
|
export const app1: App<unknown> = new App()
|
||||||
.get("/", (ctx) =>
|
.get("/", (ctx) =>
|
||||||
ctx.render(
|
ctx.render(
|
||||||
<Doc>
|
<Doc>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { App } from "fresh";
|
import { App } from "fresh";
|
||||||
import { Doc } from "./shared.tsx";
|
import { Doc } from "./shared.tsx";
|
||||||
|
|
||||||
export const app2 = new App()
|
export const app2: App<unknown> = new App()
|
||||||
.get("/", (ctx) =>
|
.get("/", (ctx) =>
|
||||||
ctx.render(
|
ctx.render(
|
||||||
<Doc>
|
<Doc>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { useSignal } from "@preact/signals";
|
import { useSignal } from "@preact/signals";
|
||||||
|
import type { JSX } from "preact";
|
||||||
|
|
||||||
export default function DemoIsland() {
|
export default function DemoIsland(): JSX.Element {
|
||||||
const count = useSignal(0);
|
const count = useSignal(0);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user