Reference - BaklavaJS
    Preparing search index...

    Type Parameters

    • T
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    conversions: IConversion<T, any>[] = []
    name: string

    Methods

    • A conversion makes it possible to connect two node interfaces although they have different types.

      Type Parameters

      • O

      Parameters

      • to: NodeInterfaceType<O>

        Type to convert to

      • transformationFunction: (value: T) => O = ...

        Will be called to transform the value from one type to another. A transformation to convert the type string to number could be parseInt.

      Returns NodeInterfaceType<T>

      the instance the method was called on for chaining