parseTrackerSyntax
parseTrackerSyntax(
syntax
):Either
<RulesError
,TrackerDefinition
>
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
Either
<RulesError
, TrackerDefinition
>
An object containing the tracker’s name, type, and encoded default value.
Throws
An error if the tracker type or default value is invalid.