feat(dashboard): more type safety

This commit is contained in:
2025-11-17 01:26:33 +02:00
parent f39635e04f
commit 22aab9ffc6
25 changed files with 120 additions and 71 deletions
+3 -5
View File
@@ -31,11 +31,9 @@ export const sourcesRouter = createTRPCRouter({
return getSourceCategoryShares(ctx.db, input);
}),
getPublicationGraph: protectedProcedure
.input(getPublicationsSchema)
.query(async ({ ctx, input }) => {
return getSourcePublicationGraph(ctx.db, input);
}),
getPublications: protectedProcedure.input(getPublicationsSchema).query(async ({ ctx, input }) => {
return getSourcePublicationGraph(ctx.db, input);
}),
list: protectedProcedure.query(async ({ ctx }) => getSources(ctx.db)),
+7
View File
@@ -1,4 +1,11 @@
{
"compilerOptions": {
"paths": {
"#api/*": ["./src/*"],
"#db/*": ["../../packages/db/src/*"],
"#domain/*": ["../../packages/domain/src/*"]
}
},
"extends": "@basango/tsconfig/base.json",
"include": ["src"]
}