MCPcopy Create free account
hub / github.com/Effect-TS/effect / fromStringUnsafe

Function fromStringUnsafe

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

Source from the content-addressed store, hash-verified

1347 * @since 4.0.0
1348 */
1349export const fromStringUnsafe = (s: string): BigDecimal => {
1350 return Option.getOrThrowWith(fromString(s), () => new Error(`Invalid numerical string: ${s}`))
1351}
1352
1353/**
1354 * Formats a `BigDecimal` as a string.

Callers

nothing calls this directly

Calls 1

fromStringFunction · 0.70

Tested by

no test coverage detected