parseTrackerSyntax
parseTrackerSyntax(
syntax
):object
Parses the tracker syntax and validates its type and default value.
Parameters
Parameter | Type | Description |
---|---|---|
syntax | trackerJSON | The JSON representation of the tracker syntax. |
Returns
object
An object containing the tracker’s name, type, and encoded default value.
defaultValue
defaultValue:
any
=trackerDefaultValue
name
name:
string
type
type:
number
=trackerTypeEnum
Throws
An error if the tracker type or default value is invalid.