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