Skip to content

Commit

Permalink
fix readme mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
garybernhardt committed Sep 9, 2021
1 parent 485b280 commit 52dfb49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ const course = path('/courses/:courseId')
const lesson = course.path('/lessons/:lessonId')

// This returns '/courses/typescript/lessons/type-predicates'.
course({courseId: 'typescript', lessonId: 'type-predicates'})
lesson({courseId: 'typescript', lessonId: 'type-predicates'})

// Both of these are type errors.
course({courseId: 'typescript'})
course({lessonId: 'type-predicates'})
lesson({courseId: 'typescript'})
lesson({lessonId: 'type-predicates'})
```

Static-path only supports params like `':courseId'`.
Expand Down

0 comments on commit 52dfb49

Please sign in to comment.