diff --git a/src/renderer/src/types/serialize.ts b/src/renderer/src/types/serialize.ts index 8d8e9e7a33..328868dcfa 100644 --- a/src/renderer/src/types/serialize.ts +++ b/src/renderer/src/types/serialize.ts @@ -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 状态) * 支持嵌套对象、数组的深度检测 */