Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

Const construct

  • construct<T>(items: RowType<T>[], type: T, dataset: Scenario | RowType<"scenario" | "incomeStream" | "asset" | "liability" | "income" | "expense" | "incomeTax" | "person" | "text">[], end_year: Year): ItemType<T>
  • Construct an item from a row object

    Type parameters

    • T: "scenario" | "incomeStream" | "asset" | "liability" | "income" | "expense" | "incomeTax" | "person" | "text"

    Parameters

    • items: RowType<T>[]
    • type: T

      The type of item (defaulted from the item)

    • dataset: Scenario | RowType<"scenario" | "incomeStream" | "asset" | "liability" | "income" | "expense" | "incomeTax" | "person" | "text">[]
    • end_year: Year

    Returns ItemType<T>

    the constructed instance.

Generated using TypeDoc