diff --git a/README.md b/README.md index 09871a3..567c68f 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ type Data = { } const defaultData: Data = { messages: [] } -const db = await JSONFile('db.json') +const db = await JSONPreset('db.json', defaultData) db.data.messages.push('foo') // ✅ Success db.data.messages.push(1) // ❌ TypeScript error