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

Function isProfileBody

apps/api/tests/api/users/users.routes.test.ts:10–20  ·  view source on GitHub ↗
(
  value: unknown
)

Source from the content-addressed store, hash-verified

8const ME_URL = "http://localhost/api/v1/users/me";
9
10const isProfileBody = (
11 value: unknown
12): value is { email: string; firstName: string; lastName: string } =>
13 value !== null &&
14 typeof value === "object" &&
15 "email" in value &&
16 typeof value.email === "string" &&
17 "firstName" in value &&
18 typeof value.firstName === "string" &&
19 "lastName" in value &&
20 typeof value.lastName === "string";
21
22const isMeBody = (
23 value: unknown

Callers 2

isMeBodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected