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:
@@ -18,10 +18,10 @@ The quickest way to get started is to enable partials for every page in
|
||||
`routes/_app.tsx` by making the following changes.
|
||||
|
||||
```diff routes/_app.tsx
|
||||
import { AppProps } from "$fresh/server.ts";
|
||||
import { PageProps } from "$fresh/server.ts";
|
||||
+ import { Partial } from "$fresh/runtime.ts";
|
||||
|
||||
export default function App({ Component }: AppProps) {
|
||||
export default function App({ Component }: PageProps) {
|
||||
return (
|
||||
<html>
|
||||
<head>
|
||||
|
||||
Reference in New Issue
Block a user