mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-12 00:49:14 +08:00
refactor(types): Enhance Serializable type to include SerializableValue for improved serialization handling
- Updated Serializable type to use SerializableValue for better clarity and structure. - Ensured compatibility with nested objects and arrays in serialization logic.
This commit is contained in:
parent
b7b0ee8cd8
commit
668ac3d7ee
@ -1,4 +1,6 @@
|
|||||||
export type Serializable = null | boolean | number | string | { [key: string]: Serializable } | Serializable[] /**
|
export type Serializable = null | boolean | number | string | { [key: string]: SerializableValue } | SerializableValue[]
|
||||||
|
|
||||||
|
type SerializableValue = null | boolean | number | string | { [key: string]: any } | any[] /**
|
||||||
* 判断一个值是否可序列化(适合用于 Redux 状态)
|
* 判断一个值是否可序列化(适合用于 Redux 状态)
|
||||||
* 支持嵌套对象、数组的深度检测
|
* 支持嵌套对象、数组的深度检测
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user