IFunction

An interface for expression functions.

Description

The IFunction is an interface for expression functions.

Properties

name

Function’s name.

name(): string

  • retuns: string - function’s name.

Instance methods

calculate

Function calculation method.

calculate(params: Variant[], variantOperations: IVariantOperations): Promise<Variant>

  • params: Variant[] - array with function parameters.
  • variantOperations: IVariantOperations - variants operations manager.
  • returns: Promise<Variant> - returned function’s result.