effect-io-ai

Package: effect
Module: Schema

Schema.NumberFromString

This schema transforms a string into a number by parsing the string using the parse function of the effect/Number module.

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”.

Signature

declare class NumberFromString

Source

Since v3.10.0