aboutsummaryrefslogtreecommitdiffstats
path: root/packages/trpc/index.ts
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-05-06 18:05:27 +0100
committerMohamedBassem <me@mbassem.com>2024-05-06 18:05:27 +0100
commit32b5a025568dcc5788a8a2afc19bf07264e01a63 (patch)
tree7ad808c667148154c9244cb3def56315da89ef52 /packages/trpc/index.ts
parent02ef4bfc89e66fdf6593dd744aef53adee57b861 (diff)
downloadkarakeep-32b5a025568dcc5788a8a2afc19bf07264e01a63.tar.zst
feature: Dedup links on creation. Fixes #49
Diffstat (limited to 'packages/trpc/index.ts')
-rw-r--r--packages/trpc/index.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/trpc/index.ts b/packages/trpc/index.ts
index 4055fa5d..5f351a8e 100644
--- a/packages/trpc/index.ts
+++ b/packages/trpc/index.ts
@@ -17,6 +17,11 @@ export interface Context {
db: typeof db;
}
+export interface AuthedContext {
+ user: User;
+ db: typeof db;
+}
+
// Avoid exporting the entire t-object
// since it's not very descriptive.
// For instance, the use of a t variable