The API reference is a Work in Progress and will be continuously improved and extended. We'd love to hear your feedback in our documentation repository.
Home > @edtr-io/plugin > serializedScalar
serializedScalar() function
Signature:export declare function serializedScalar<S, T>(
initialState: T,
serializer: Serializer<S, T>
): SerializedScalarStateType<S, T>
Parameters
Parameter | Type | Description |
---|---|---|
initialState | T | The initial state |
serializer | Serializer<S, T> | The serializer |