mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-19 06:30:10 +08:00
refactor(serialize): 重命名 SerializableValue 为 SerializablePrimitive 以提高可读性
将 SerializableValue 类型重命名为 SerializablePrimitive 以更准确地反映其用途,仅包含基本类型
This commit is contained in:
parent
668ac3d7ee
commit
8408a8d359
@ -1,6 +1,6 @@
|
||||
export type Serializable = null | boolean | number | string | { [key: string]: SerializableValue } | SerializableValue[]
|
||||
export type Serializable = SerializablePrimitive | { [key: string]: SerializablePrimitive } | SerializablePrimitive[]
|
||||
|
||||
type SerializableValue = null | boolean | number | string | { [key: string]: any } | any[] /**
|
||||
type SerializablePrimitive = null | boolean | number | string /**
|
||||
* 判断一个值是否可序列化(适合用于 Redux 状态)
|
||||
* 支持嵌套对象、数组的深度检测
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user