Skip to content

Home > resol-vbus-core-script > parseScript

parseScript() function

Parse the provided script contents into a function.

Signature:

typescript
export declare function parseScript(scriptContents: string, filename: string): ParsedScript;

Parameters

Parameter

Type

Description

scriptContents

string

The script contents to parse.

filename

string

The file name for diagnostics.

**Returns:**

ParsedScript

The script function and reported diagnostics.