--- layout: posts title: Api - kit Namespace ---

Index

Functions

construct

  • Helper function to use the JavaScript "apply" function in conjunction with the "new" keyword.

    Parameters

    • ctor: IKit

      The constructor for the class which is an IKit.

    • args: any

      The array of parameters passed to the constructor.

    Returns IModel

    A new instance of the class, which implements the IModel interface.

getParameterValues

  • getParameterValues(ctor: IKit): any[]
  • Extract just the initial sample values from a kit.

    Parameters

    • ctor: IKit

      The constructor for the class which is an IKit.

    Returns any[]

    Array of the inital sample values provided in the metaParameters array.

Generated using TypeDoc