Skip to main content
Version: 5.2

SerializationContext <T>

Helper that allows to keep track of where we are currently at when serializing complex entity graph with cycles. Before we process a property, we call visit that checks if it is not a cycle path (but allows to pass cycles that are defined in populate hint). If not, we proceed and call leave afterwards.

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

readonlypath

path: [string, string][] = []

Methods

leave

  • leave<U>(entityName: string, prop: string): void
  • Type parameters

    • U

    Parameters

    • entityName: string
    • prop: string

    Returns void

visit

  • visit(entityName: string, prop: string): boolean
  • Parameters

    • entityName: string
    • prop: string

    Returns boolean

staticpropagate