Function numberFromString

      • This combinator transforms a string into a number by parsing the string using the Number function.

        It returns an error if the value can't be converted (for example when non-numeric characters are provided).

        The following special string values are supported: "NaN", "Infinity", "-Infinity".

        Type Parameters

        • I

        • A extends string

        Parameters

        • self: Schema<I, A>

          The schema representing the input string

        Returns Schema<I, number>

        Since

        1.0.0