ActiveUI

ActiveUI

  • User Guide
  • Developer Documentation

Home > @activeviam/activeui-sdk > SerializationHelper

SerializationHelper interface

An object that provides predefined Serialization objects that handle different types of plugin parameters. These are useful when defining the PluginParametersSerializationFn of a plugin.

Signature:

export interface SerializationHelper 

Properties

PropertyTypeDescription
anySerializationCan be used with any serializable variable.
array<S, T>(helperType: TypedSerialization<S, T>) => ArraySerialization<S, T>Returns a Serialization object that handles arrays of the type catered by the Serialization passed in argument.
arrayOf(type: PluginType) => SerializationReturns a Serialization object that handles arrays of plugins of the type passed as argument.
booleanTypedIdentitySerialization<boolean>
instanceOf(type: PluginType) => SerializationReturns a Serialization object that handles a plugin of the type passed as argument.
numberTypedIdentitySerialization<number>
optional(helperType: Serialization) => SerializationReturns a Serialization object that handles a plugin parameter as being optional.
stringTypedIdentitySerialization<string>
  • SerializationHelper interface
  • Properties
Copyright © 2023 ActiveViam