• Add a rule to rule array.

    Parameters

    • rules: RecipeRule[]

      The rule array to modify

    • path: string

      Dot separated path to the parent rule whose rule array shall be altered

    • rule: RecipeRule

      The rule to add.

    Returns void

    Error when a rule at the specified path already exists.