Skip to content

Commit 5769a84

Browse files
authored
docs: update
1 parent 8841e1c commit 5769a84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ db.data.messages.push(1) // ❌ TypeScript error
105105

106106
### Lodash
107107

108-
You can extend lowdb with Lodash (or other libraries).
108+
You can extend lowdb with Lodash (or other libraries). To be able to extend it, we're not using `JSONPreset` here. Instead, we're using lower components.
109109

110110
```ts
111111
import { Low } from 'lowdb'
@@ -130,6 +130,7 @@ const defaultData: Data = {
130130
posts: [],
131131
}
132132
const adapter = new JSONFile<Data>('db.json', defaultData)
133+
133134
const db = new LowWithLodash(adapter)
134135
await db.read()
135136

0 commit comments

Comments
 (0)