fix(store): StoreOptions.defaults should not be required (#3499)

This commit is contained in:
Tony authored and GitHub committed 2026-07-18 19:46:31 +08:00
1 parent cdfd462955
commit 2ed6d6c1de
2 files changed
+7 -1

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
---
store: patch
store-js: patch
---
Fix `StoreOptions` requires `defaults` field
+1 -1
View File
@@ -21,7 +21,7 @@ export type StoreOptions = {
/**
* Default value of the store
*/
defaults: { [key: string]: unknown }
defaults?: { [key: string]: unknown }
/**
* Auto save on modification with debounce duration in milliseconds, it's 100ms by default, pass in `false` to disable it
*/