Skip to content

Commit

Permalink
Update docs/tutorials/blog.md
Browse files Browse the repository at this point in the history
Co-authored-by: Michaël De Boey <info@michaeldeboey.be>
  • Loading branch information
tom-sherman and MichaelDeBoey committed Mar 9, 2023
1 parent 3008bf6 commit 931ba33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorials/blog.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ Hey, that's pretty cool. We get a pretty solid degree of type safety even over a

We can take the type safety a step further in TypeScript 4.9.0 using the `satisfies` keyword. This will ensure that we always return a type of `Response` from the loader instead of accidentally returning another type which would result in a runtime error.

```ts filename=app/routes/posts/index.tsx lines=[1,22]
```ts filename=app/routes/posts/index.tsx lines=[1,23]
import type { LoaderFunction } from "@remix-run/node";
import { json } from "@remix-run/node";
import { Link, useLoaderData } from "@remix-run/react";
Expand Down

0 comments on commit 931ba33

Please sign in to comment.