Skip to content

Commit

Permalink
Merge pull request #4642 from factiondavid/patch-1
Browse files Browse the repository at this point in the history
Update UsageWithTypescript.md
  • Loading branch information
EskiMojo14 committed Dec 20, 2023
2 parents e025f32 + 30b6668 commit 3cd25e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/usage/UsageWithTypescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -615,8 +615,8 @@ interface Book {
}

// highlight-next-line
const booksAdapter = createEntityAdapter<Book>({
selectId: book => book.bookId,
const booksAdapter = createEntityAdapter({
selectId: (book: Book) => book.bookId,
sortComparer: (a, b) => a.title.localeCompare(b.title)
})

Expand Down

0 comments on commit 3cd25e1

Please sign in to comment.