aboutsummaryrefslogtreecommitdiffstats
path: root/packages/trpc/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/trpc/index.ts')
-rw-r--r--packages/trpc/index.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/trpc/index.ts b/packages/trpc/index.ts
index 5f351a8e..26d8ea96 100644
--- a/packages/trpc/index.ts
+++ b/packages/trpc/index.ts
@@ -15,11 +15,17 @@ interface User {
export interface Context {
user: User | null;
db: typeof db;
+ req: {
+ ip: string | null;
+ };
}
export interface AuthedContext {
user: User;
db: typeof db;
+ req: {
+ ip: string | null;
+ };
}
// Avoid exporting the entire t-object