Edtr.io
DocumentationAPIBlog
v2.0.0GitHub

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

ParameterTypeDescription
initialStateTThe initial state
serializerSerializer<S, T>The serializer
Returns:

SerializedScalarStateType<S, T>

Privacy
Imprint

© 2023 Serlo Education e.V.

API Reference@edtr-io/core@edtr-io/default-document-editor@edtr-io/default-plugin-toolbar@edtr-io/document-editor@edtr-io/editor-ui@edtr-io/math@edtr-io/plugin@edtr-io/renderer-ssr@edtr-io/renderer-ui@edtr-io/renderer@edtr-io/store-devtools@edtr-io/store@edtr-io/ui@edtr-io/plugin-anchor@edtr-io/plugin-blockquote@edtr-io/plugin-files@edtr-io/plugin-geogebra@edtr-io/plugin-highlight@edtr-io/plugin-image@edtr-io/plugin-input-exercise@edtr-io/plugin-multimedia-explanation@edtr-io/plugin-rows@edtr-io/plugin-sc-mc-exercise@edtr-io/plugin-serlo-injection@edtr-io/plugin-spoiler@edtr-io/plugin-table@edtr-io/plugin-text@edtr-io/plugin-toolbar@edtr-io/plugin-video