MCPcopy Create free account
hub / github.com/cosdensolutions/code / getUsers

Function getUsers

videos/long/zod-validation-in-react/src/api/api.ts:11–23  ·  view source on GitHub ↗
(filters: UsersFilters)

Source from the content-addressed store, hash-verified

9type UsersFilters = z.infer<typeof getUsersSchema>;
10
11export async function getUsers(filters: UsersFilters) {
12 // Use the filters
13
14 const result = getUsersSchema.safeParse(filters);
15
16 fetch('/api', {
17 headers: {
18 Authorization: `Bearer ${env.SECRET_KEY}`,
19 },
20 });
21
22 //
23}

Callers 1

HomeFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected