Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Context<T>

Type parameters

  • T: object

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

transforms

transforms: Array<ContextualTransform<any, Partial<T>>>

Methods

clone

merge

  • add all transforms from the provided context

    Type parameters

    • P: object

    Parameters

    • context: Context<P>

      a context to inherit tranforms from

    Returns Context<T & P>

resolve

  • resolve(context?: any, initialValue?: object): T
  • apply all transformations to resolve the result object

    Parameters

    • Default value context: any = null

      a context object passed to each transform

    • Default value initialValue: object = {}

      the initial value passed into the transformation chain

    Returns T

set

Private transform

update

  • update(value: Applicator<Partial<T>, any> | Partial<T>): this

Generated using TypeDoc