|
1 | 1 | import type { ComponentChildren } from "preact"; |
2 | | -import type { FreshContext } from "./context.ts"; |
| 2 | +import type { Context } from "./context.ts"; |
3 | 3 | import type { PageProps } from "./render.ts"; |
4 | 4 | import type { HandlerFn, RouteHandler } from "./handlers.ts"; |
5 | 5 |
|
6 | 6 | /** |
7 | 7 | * @deprecated Use {@linkcode PageProps} instead. |
8 | 8 | */ |
9 | | -export type AppProps<_Data = unknown, T = unknown> = FreshContext<T>; |
| 9 | +export type AppProps<_Data = unknown, T = unknown> = Context<T>; |
10 | 10 | /** |
11 | 11 | * @deprecated Use {@linkcode PageProps} instead. |
12 | 12 | */ |
13 | | -export type LayoutProps<_Data = unknown, T = unknown> = FreshContext<T>; |
| 13 | +export type LayoutProps<_Data = unknown, T = unknown> = Context<T>; |
14 | 14 | /** |
15 | 15 | * @deprecated Use {@linkcode PageProps} instead. |
16 | 16 | */ |
17 | | -export type UnknownPageProps<_Data = unknown, T = unknown> = FreshContext<T>; |
| 17 | +export type UnknownPageProps<_Data = unknown, T = unknown> = Context<T>; |
18 | 18 | /** |
19 | 19 | * @deprecated Use {@linkcode PageProps} instead. |
20 | 20 | */ |
21 | | -export type ErrorPageProps<_Data = unknown, T = unknown> = FreshContext<T>; |
| 21 | +export type ErrorPageProps<_Data = unknown, T = unknown> = Context<T>; |
22 | 22 |
|
23 | 23 | /** |
24 | 24 | * @deprecated Use {@linkcode FreshContext} instead. |
25 | 25 | */ |
26 | | -export type RouteContext<_T = never, S = Record<string, unknown>> = |
27 | | - FreshContext<S>; |
| 26 | +export type RouteContext<_T = never, S = Record<string, unknown>> = Context<S>; |
28 | 27 |
|
29 | 28 | /** |
30 | 29 | * @deprecated Use {@linkcode RouteHandler} instead. |
|
0 commit comments