MCPcopy Index your code
hub / github.com/Effect-TS/effect / unsafeFromString

Function unsafeFromString

packages/effect/src/BigDecimal.ts:955–956  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

953 * @category constructors
954 */
955export const unsafeFromString = (s: string): BigDecimal =>
956 Option.getOrThrowWith(fromString(s), () => new Error("Invalid numerical string"))
957
958/**
959 * Formats a given `BigDecimal` as a `string`.

Callers

nothing calls this directly

Calls 1

fromStringFunction · 0.70

Tested by

no test coverage detected