main
|
Last change
on this file since 9e9293a was c30935a, checked in by Tome <gjorgievtome@…>, 7 months ago |
|
fix config
|
-
Property mode
set to
100644
|
|
File size:
587 bytes
|
| Line | |
|---|
| 1 | import { Session } from "@auth/core/types";
|
|---|
| 2 | import type { Database } from "./database/drizzle/db";
|
|---|
| 3 |
|
|---|
| 4 | declare module "telefunc" {
|
|---|
| 5 | namespace Telefunc {
|
|---|
| 6 | interface Context {
|
|---|
| 7 | db: Database;
|
|---|
| 8 | session: Session | null;
|
|---|
| 9 | request: Request;
|
|---|
| 10 | }
|
|---|
| 11 | }
|
|---|
| 12 | }
|
|---|
| 13 |
|
|---|
| 14 | declare global {
|
|---|
| 15 | namespace Vike {
|
|---|
| 16 | interface PageContextServer {
|
|---|
| 17 | db: Database;
|
|---|
| 18 | }
|
|---|
| 19 | }
|
|---|
| 20 | }
|
|---|
| 21 |
|
|---|
| 22 | declare global {
|
|---|
| 23 | namespace Vike {
|
|---|
| 24 | interface PageContext {
|
|---|
| 25 | session?: Session | null;
|
|---|
| 26 | }
|
|---|
| 27 | }
|
|---|
| 28 | }
|
|---|
| 29 |
|
|---|
| 30 | // biome-ignore lint/complexity/noUselessEmptyExport: ensure that the file is considered as a module
|
|---|
| 31 | export {};
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.