We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b004c8 commit 966a3fdCopy full SHA for 966a3fd
1 file changed
README.md
@@ -148,9 +148,9 @@ class LowWithLodash<T> extends Low<T> {
148
const defaultData: Data = {
149
posts: [],
150
}
151
-const adapter = new JSONFile<Data>('db.json', defaultData)
+const adapter = new JSONFile<Data>('db.json')
152
153
-const db = new LowWithLodash(adapter)
+const db = new LowWithLodash(adapter, defaultData)
154
await db.read()
155
156
// Instead of db.data use db.chain to access lodash API
0 commit comments