Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ScriptValue

A value provided by a script.

Hierarchy

  • ScriptValue

Implements

Index

Constructors

constructor

  • new ScriptValue(script: string, options: any, initialState: any, resolvePath: ego_contracts.PathResolver, otherValues: ego_contracts.ValueProvider, getExtensionContext: ego_contracts.ExtensionContextProvider, getOutput: ego_contracts.OutputChannelProvider, name?: string): ScriptValue
  • Initializes a new instance of that class.

    Parameters

    • script: string

      The script to execute.

    • options: any

      Options for the script.

    • initialState: any

      The (initial) state value.

    • resolvePath: ego_contracts.PathResolver

      The function that resolves a (relative) path.

    • otherValues: ego_contracts.ValueProvider

      Provides the other values.

    • getExtensionContext: ego_contracts.ExtensionContextProvider

      Provides the extension context.

    • getOutput: ego_contracts.OutputChannelProvider

      Provides the output channel.

    • Optional name: string

    Returns ScriptValue

Properties

getExtensionContext

getExtensionContext: ego_contracts.ExtensionContextProvider

Provides the extension context.

getOutput

getOutput: ego_contracts.OutputChannelProvider

Provides the output channel.

Private initialState

initialState: any

The (initial) state value.

Optional name

name: string

options

options: any

Options for the script.

otherValues

otherValues: ego_contracts.ValueProvider

Provides the other values.

resolvePath

resolvePath: ego_contracts.PathResolver

The function that resolves a (relative) path.

script

script: string

The script to execute.

scriptFile

scriptFile: string

The full path of the script file.

scriptModule

scriptModule: ScriptValueModule

The underlying module.

Accessors

value

  • get value(): any
  • The value.

    inheritdoc

    Returns any

Generated using TypeDoc