diff --git a/docs/usage/UsageWithTypescript.md b/docs/usage/UsageWithTypescript.md index 3984a89cff..81a89ab501 100644 --- a/docs/usage/UsageWithTypescript.md +++ b/docs/usage/UsageWithTypescript.md @@ -615,8 +615,8 @@ interface Book { } // highlight-next-line -const booksAdapter = createEntityAdapter({ - selectId: book => book.bookId, +const booksAdapter = createEntityAdapter({ + selectId: (book: Book) => book.bookId, sortComparer: (a, b) => a.title.localeCompare(b.title) })