update all deps
This commit is contained in:
@@ -1,20 +1,24 @@
|
||||
import type { inferRouterOutputs } from "@trpc/server";
|
||||
import { router } from "../trpc";
|
||||
import type { inferReactQueryProcedureOptions } from "@trpc/react-query";
|
||||
import { projectRouter } from "./project";
|
||||
import { techStackRouter } from "./techStack";
|
||||
import { cvCategoryRouter } from "./cvCategory";
|
||||
import { cvEntryRouter } from "./cvEntry";
|
||||
import { trpcCrudRouterFromDrizzleEntity } from "../lib";
|
||||
import type { inferRouterMeta } from "@trpc/server/unstable-core-do-not-import";
|
||||
import { cvCategory } from "../dbschema/schema";
|
||||
|
||||
const { router : project } = trpcCrudRouterFromDrizzleEntity('project')
|
||||
const { router : techStack } = trpcCrudRouterFromDrizzleEntity('techStack')
|
||||
const { router : category } = trpcCrudRouterFromDrizzleEntity('cvCategory')
|
||||
const { router : entry } = trpcCrudRouterFromDrizzleEntity('cvEntry')
|
||||
export const trpcRouter = router({
|
||||
project: project,
|
||||
techStack: techStack,
|
||||
category: category,
|
||||
entry: entry
|
||||
})
|
||||
project: trpcCrudRouterFromDrizzleEntity('project').router,
|
||||
projectv2: projectRouter,
|
||||
techStack: trpcCrudRouterFromDrizzleEntity('techStack').router,
|
||||
techStackv2: techStackRouter,
|
||||
category: trpcCrudRouterFromDrizzleEntity('cvCategory').router,
|
||||
categoryv2: cvCategoryRouter,
|
||||
entry: trpcCrudRouterFromDrizzleEntity('cvEntry').router,
|
||||
entryv2: cvEntryRouter,
|
||||
});
|
||||
|
||||
export type TrpcRouter = typeof trpcRouter
|
||||
export type RouterOutputs = inferRouterOutputs<TrpcRouter>
|
||||
export type ReactQueryOptions = inferReactQueryProcedureOptions<TrpcRouter>
|
||||
export type TrpcRouter = typeof trpcRouter;
|
||||
export type RouterOutputs = inferRouterOutputs<TrpcRouter>;
|
||||
export type ReactQueryOptions = inferReactQueryProcedureOptions<TrpcRouter>;
|
||||
|
||||
Reference in New Issue
Block a user