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

Function pluralize

packages/effect-app/src/Model/Repository/internal/internal.ts:637–642  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

635 )
636 : a.ttype === "count"
637 ? Effect
638 .map(eff, (_) => NonNegativeInt(_.length))
639 .pipe(Effect.catchTag("SchemaError", (e) => Effect.die(e)))
640 : eff,
641 Effect.tap((r) =>
642 Effect.annotateCurrentSpan({
643 "app.query.ttype": a.ttype,
644 "app.query.mode": a.mode,
645 "db.response.returned_rows": Array.isArray(r) ? r.length : 1

Callers 1

makeStoreFunction · 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…