Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "src/StructureClone"

Index

Variables

Const HAS_CIRCULAR_REF_OR_TRANSFERRABLE

HAS_CIRCULAR_REF_OR_TRANSFERRABLE: unique symbol = Symbol('hasCircularRef')

Functions

_deserializeRef

_serializeObject

  • _serializeObject(value: unknown, map: Map<any, MapRef>): unknown

deserializeStructure

serializeStructure

  • Serializes the given value into a new object that is flat and contains no circular references.

    The returned object is JSON-safe and contains a root which is the entry point to the data structure and optionally contains a refs property which is a flat map of references.

    If the refs property is defined, then the data structure was circular.

    Parameters

    • value: unknown

      The value to serialize.

    • Optional transferrable: Transferrable[]

      The transferrable list.

    Returns Structure

Generated using TypeDoc