Vloop API
    Preparing search index...

    Function fixssert

    • Returns a valid JSON-compatible value, asking the workbench user to correct it when the predicate rejects it. Corrections are checked until one passes; predicate exceptions remain loop errors.

      Type Parameters

      • T

      Parameters

      • value: T

        Value checked first. A missing value may be undefined.

      • predicate: (value: unknown) => boolean | PromiseLike<boolean>

        Check run for the initial value and every replacement.

      • description: string

        Non-empty explanation shown to the user.

      Returns Promise<T>