Polyman Documentation - v2.2.2
    Preparing search index...

    Function ensureSolutionExists

    • Ensures a specific solution exists in the configuration. Type assertion function that throws if solution not found.

      Parameters

      • solutions: LocalSolution[] | undefined

        Solutions array to validate

      • solutionName: string

        Name of solution to find

      Returns asserts solutions is LocalSolution[]

      If no solutions are defined

      If solution with given name doesn't exist

      ensureSolutionExists(config.solutions, 'wa-solution');