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:
MyPrototypeWhat 2025-09-04 13:14:11 +08:00
parent b7b0ee8cd8
commit 668ac3d7ee

View File

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