github-community-projects / private-mirrors

A GitHub App that allows you to contribute upstream using private mirrors of public projects
MIT License
119 stars 12 forks source link

tech debt: createCaller() deprecated, needs replaced #174

Closed zkoppert closed 2 months ago

zkoppert commented 2 months ago

Describe the bug

'createCaller' is deprecated.ts(6385) router.d.ts(80, 8): The declaration was marked as deprecated here.

(property) Router<RouterDef<RootConfig<{ ctx: { session: Session | null; }; meta: object; errorShape: DefaultErrorShape; transformer: typeof SuperJSON; }>, { createMirror: BuildProcedure<...>; listMirrors: BuildProcedure<...>; editMirror: BuildProcedure<...>; deleteMirror: BuildProcedure<...>; }, { ...; }>>.createCaller: (ctx: {
    session: Session | null;
}) => DecoratedProcedureRecord<...> & {
    query: inferHandlerFn<...>;
    mutation: inferHandlerFn<...>;
    subscription: inferHandlerFn<...>;
}

@deprecated — use t.createCallerFactory(router) instead

@see — https://trpc.io/docs/server/server-side-calls

To Reproduce

nothing needed to reproduce

Expected behavior

function calls are not deprecated

Screenshots

No response

Additional context

No response