Allow js to use pre-stored (de)serialize functions

This commit is contained in:
Tony
2024-10-03 16:46:06 +08:00
parent a3bef84382
commit 718f5dc90d
4 changed files with 65 additions and 8 deletions
+8
View File
@@ -21,6 +21,14 @@ export type StoreOptions = {
* Auto save on modification with debounce duration in milliseconds, it's 100ms by default, pass in `false` to disable it
*/
autoSave?: boolean | number
/**
* Name of a serialize function registered in the rust side plugin builder
*/
serializeFnName?: string
/**
* Name of a deserialize function registered in the rust side plugin builder
*/
deserializeFnName?: string
}
/**