Skip to content

Commit 041e04e

Browse files
event.locals の interface を定義する #13
1 parent 38036b4 commit 041e04e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/app.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
// for information about these interfaces
33
// and what to do when importing types
44
declare namespace App {
5-
// interface Locals {}
5+
interface Locals {
6+
user: {
7+
username: string
8+
role: string
9+
}
10+
}
611
// interface PageData {}
712
// interface Error {}
813
// interface Platform {}

0 commit comments

Comments
 (0)