MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / singletonMap

Function singletonMap

apps/api/src/lib/errors/api-errors.factory.ts:17–20  ·  view source on GitHub ↗
(
  field: string,
  message: string
)

Source from the content-addressed store, hash-verified

15 * for multi-field cases.
16 */
17const singletonMap = (
18 field: string,
19 message: string
20): Record<string, string> => ({ [field]: message });
21
22export const ApiErrors = {
23 validation: (

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected