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

Function fromStringUnsafe

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

Source from the content-addressed store, hash-verified

1436 * @since 4.0.0
1437 */
1438export const fromStringUnsafe = (s: string): BigDecimal => {
1439 return Option.getOrThrowWith(fromString(s), () => new Error(`Invalid numerical string: ${s}`))
1440}
1441
1442/**
1443 * Formats a `BigDecimal` as a string.

Callers

nothing calls this directly

Calls 1

fromStringFunction · 0.70

Tested by

no test coverage detected