MCPcopy Create free account
hub / github.com/effect-app/libs / invalid

Function invalid

repos/effect/packages/effect/src/Duration.ts:309–311  ·  view source on GitHub ↗
(input: unknown)

Source from the content-addressed store, hash-verified

307 // we can use truthy checks here, because 0 can be ignored
308 if (obj.weeks) millis += obj.weeks * 604_800_000
309 if (obj.days) millis += obj.days * 86_400_000
310 if (obj.hours) millis += obj.hours * 3_600_000
311 if (obj.minutes) millis += obj.minutes * 60_000
312 if (obj.seconds) millis += obj.seconds * 1_000
313 if (obj.milliseconds) millis += obj.milliseconds
314 if (!obj.microseconds && !obj.nanoseconds) return make(millis)

Callers 1

fromInputUnsafeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…