@ntix/parsing
    Preparing search index...

    Function asCurrent

    • Creates a wrap around a parse function

      Allows the result to be negated. The parse function should return errors for every result to allow negation

      Type Parameters

      • T

      Parameters

      • parse: (value: unknown) => IParseResult<T>

        parse function that is negatable

      • negate: boolean = false

        negate the result

      Returns ICurrentParser<T>

      a current parser