v0.7.0
validateRuleJSON(Defined in: src/modules/validation.ts:322 Parses a JSON string and returns Either a RuleJSON object or an error.rule
):Either
<RulesError
[],RuleJSON
>
Parameter | Type | Description |
---|---|---|
rule | string | string to be parsed. |
Either
<RulesError
[], RuleJSON
>
Either the parsed RuleJSON object or an error.