refactor(serialize): 重命名 SerializableValue 为 SerializablePrimitive 以提高可读性

将 SerializableValue 类型重命名为 SerializablePrimitive 以更准确地反映其用途,仅包含基本类型
This commit is contained in:
icarus 2025-09-04 13:32:28 +08:00
parent 668ac3d7ee
commit 8408a8d359

View File

@ -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
*
*/