Slide 20
Slide 20 text
The dream typing
type Route =
| { name: "Users", params: {} }
| { name: "User", params: { userId: string, invitationCode
?:
string } }
| { name: "Books", params: { userId: string } }
| { name: "Book", params: { userId: string, bookId: string } };