Skip to content

Commit 30b6668

Browse files
Update docs/usage/UsageWithTypescript.md
Co-authored-by: Ben Durrant <[email protected]>
1 parent 966621c commit 30b6668

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/usage/UsageWithTypescript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,8 +615,8 @@ interface Book {
615615
}
616616

617617
// highlight-next-line
618-
const booksAdapter = createEntityAdapter<Book, number>({
619-
selectId: book => book.bookId,
618+
const booksAdapter = createEntityAdapter({
619+
selectId: (book: Book) => book.bookId,
620620
sortComparer: (a, b) => a.title.localeCompare(b.title)
621621
})
622622

0 commit comments

Comments
 (0)