Function parseStringRange

  • Parses a string into a CronRange.

    Example

    const parseStringRangeSeconds = parseStringRange(parseStringSecondsValue);

    parseStringRangeSeconds("13-10"); // { from: 13, to: 10 }
    parseStringRangeSeconds("INVALID"); // undefined

    Returns

    Curried function with parser in context.

    Type Parameters

    • Value

    Parameters

    Returns ((source: string) => Maybe<CronRange<Value>>)

      • (source: string): Maybe<CronRange<Value>>
      • Parameters

        • source: string

        Returns Maybe<CronRange<Value>>