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

Function fromStringUnsafe

packages/effect/src/Rational.ts:380–381  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

378 * @since 4.1.3
379 */
380export const fromStringUnsafe = (s: string): Rational =>
381 Option.getOrThrowWith(fromString(s), () => new Error(`Invalid rational string: ${s}`))
382
383/**
384 * Adds two rationals exactly.

Callers

nothing calls this directly

Calls 1

fromStringFunction · 0.70

Tested by

no test coverage detected