MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / _get

Function _get

framework/framework/api.ts:23–27  ·  view source on GitHub ↗
(type: Type)

Source from the content-addressed store, hash-verified

21}
22
23export const _get = <Type extends ApiType>(type: Type) => <Arg, Res, Progress = void>(
24 schema: Schema<Arg>,
25 func: ApiCall<Type, Arg, Res, Progress>['func'],
26 hooks: ApiCall<'Query', Arg, void, void>[] = [],
27): ApiCall<Type, Arg, Res, Progress> => ({ input: schema, func, hooks, type } as const);
28
29export const Query = _get('Query');
30export const Mutation = _get('Mutation');

Callers 1

api.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected