docs: Remove references to deprecated types (#2125)
As per the [1.6 release](https://deno.com/blog/fresh-1.6#simplified-typings), and commentary by @csvn [here](https://github.com/denoland/fresh/issues/2108#issuecomment-1836625789), this PR aims to replace the references to deprecated typing in the documentation. Please see inline commentary for parts I'm unclear on.
This commit is contained in:
@@ -36,7 +36,7 @@ export default function ProjectPage(props: PageProps<Project>) {
|
||||
}
|
||||
```
|
||||
|
||||
The type parameter on the `PageProps`, `Handlers`, `Handler`, and
|
||||
`HandlerContext` can be used to enforce a TypeScript type to use for the render
|
||||
data. Fresh enforces during type checking that the types in all of these fields
|
||||
are compatible within a single page.
|
||||
The type parameter on the `PageProps`, `Handlers`, `Handler`, and `FreshContext`
|
||||
can be used to enforce a TypeScript type to use for the render data. Fresh
|
||||
enforces during type checking that the types in all of these fields are
|
||||
compatible within a single page.
|
||||
|
||||
Reference in New Issue
Block a user