diff options
Diffstat (limited to 'types')
-rw-r--r-- | types/auth.ts | 34 | ||||
-rw-r--r-- | types/drive.ts | 4 | ||||
-rw-r--r-- | types/events.ts | 4 | ||||
-rw-r--r-- | types/tests.ts | 2 |
4 files changed, 22 insertions, 22 deletions
diff --git a/types/auth.ts b/types/auth.ts index 9761ea5..53d470e 100644 --- a/types/auth.ts +++ b/types/auth.ts | |||
@@ -5,8 +5,8 @@ | |||
5 | * file. | 5 | * file. |
6 | */ | 6 | */ |
7 | 7 | ||
8 | import User from '#app/Models/User' | 8 | import User from '#app/Models/User'; |
9 | import { JWTGuardConfig, JWTGuardContract } from '@ioc:Adonis/Addons/Jwt' | 9 | import { JWTGuardConfig, JWTGuardContract } from '@ioc:Adonis/Addons/Jwt'; |
10 | 10 | ||
11 | declare module '@ioc:Adonis/Addons/Auth' { | 11 | declare module '@ioc:Adonis/Addons/Auth' { |
12 | /* | 12 | /* |
@@ -35,9 +35,9 @@ declare module '@ioc:Adonis/Addons/Auth' { | |||
35 | | | 35 | | |
36 | */ | 36 | */ |
37 | user: { | 37 | user: { |
38 | implementation: LucidProviderContract<typeof User> | 38 | implementation: LucidProviderContract<typeof User>; |
39 | config: LucidProviderConfig<typeof User> | 39 | config: LucidProviderConfig<typeof User>; |
40 | } | 40 | }; |
41 | } | 41 | } |
42 | 42 | ||
43 | /* | 43 | /* |
@@ -66,9 +66,9 @@ declare module '@ioc:Adonis/Addons/Auth' { | |||
66 | | | 66 | | |
67 | */ | 67 | */ |
68 | web: { | 68 | web: { |
69 | implementation: SessionGuardContract<'user', 'web'> | 69 | implementation: SessionGuardContract<'user', 'web'>; |
70 | config: SessionGuardConfig<'user'> | 70 | config: SessionGuardConfig<'user'>; |
71 | } | 71 | }; |
72 | /* | 72 | /* |
73 | |-------------------------------------------------------------------------- | 73 | |-------------------------------------------------------------------------- |
74 | | OAT Guard | 74 | | OAT Guard |
@@ -79,9 +79,9 @@ declare module '@ioc:Adonis/Addons/Auth' { | |||
79 | | | 79 | | |
80 | */ | 80 | */ |
81 | api: { | 81 | api: { |
82 | implementation: OATGuardContract<'user', 'api'> | 82 | implementation: OATGuardContract<'user', 'api'>; |
83 | config: OATGuardConfig<'user'> | 83 | config: OATGuardConfig<'user'>; |
84 | } | 84 | }; |
85 | /* | 85 | /* |
86 | |-------------------------------------------------------------------------- | 86 | |-------------------------------------------------------------------------- |
87 | | Basic Auth Guard | 87 | | Basic Auth Guard |
@@ -92,12 +92,12 @@ declare module '@ioc:Adonis/Addons/Auth' { | |||
92 | | | 92 | | |
93 | */ | 93 | */ |
94 | basic: { | 94 | basic: { |
95 | implementation: BasicAuthGuardContract<'user', 'basic'> | 95 | implementation: BasicAuthGuardContract<'user', 'basic'>; |
96 | config: BasicAuthGuardConfig<'user'> | 96 | config: BasicAuthGuardConfig<'user'>; |
97 | } | 97 | }; |
98 | jwt: { | 98 | jwt: { |
99 | implementation: JWTGuardContract<'user', 'api'> | 99 | implementation: JWTGuardContract<'user', 'api'>; |
100 | config: JWTGuardConfig<'user'> | 100 | config: JWTGuardConfig<'user'>; |
101 | } | 101 | }; |
102 | } | 102 | } |
103 | } | 103 | } |
diff --git a/types/drive.ts b/types/drive.ts index 0ad668e..e8aa2c4 100644 --- a/types/drive.ts +++ b/types/drive.ts | |||
@@ -5,8 +5,8 @@ | |||
5 | * file. | 5 | * file. |
6 | */ | 6 | */ |
7 | 7 | ||
8 | import { InferDisksFromConfig } from '@adonisjs/core/build/config' | 8 | import { InferDisksFromConfig } from '@adonisjs/core/build/config'; |
9 | import driveConfig from '../config/drive.js' | 9 | import driveConfig from '../config/drive.js'; |
10 | 10 | ||
11 | declare module '@ioc:Adonis/Core/Drive' { | 11 | declare module '@ioc:Adonis/Core/Drive' { |
12 | interface DisksList extends InferDisksFromConfig<typeof driveConfig> {} | 12 | interface DisksList extends InferDisksFromConfig<typeof driveConfig> {} |
diff --git a/types/events.ts b/types/events.ts index 91be5b4..8bf1adc 100644 --- a/types/events.ts +++ b/types/events.ts | |||
@@ -5,7 +5,7 @@ | |||
5 | * file. | 5 | * file. |
6 | */ | 6 | */ |
7 | 7 | ||
8 | import User from '#app/Models/User' | 8 | import User from '#app/Models/User'; |
9 | 9 | ||
10 | declare module '@ioc:Adonis/Core/Event' { | 10 | declare module '@ioc:Adonis/Core/Event' { |
11 | /* | 11 | /* |
@@ -28,6 +28,6 @@ declare module '@ioc:Adonis/Core/Event' { | |||
28 | | | 28 | | |
29 | */ | 29 | */ |
30 | interface EventsList { | 30 | interface EventsList { |
31 | 'forgot:password': { user: User; token: string } | 31 | 'forgot:password': { user: User; token: string }; |
32 | } | 32 | } |
33 | } | 33 | } |
diff --git a/types/tests.ts b/types/tests.ts index 9be30fc..fec995d 100644 --- a/types/tests.ts +++ b/types/tests.ts | |||
@@ -5,7 +5,7 @@ | |||
5 | * file. | 5 | * file. |
6 | */ | 6 | */ |
7 | 7 | ||
8 | import '@japa/runner' | 8 | import '@japa/runner'; |
9 | 9 | ||
10 | declare module '@japa/runner' { | 10 | declare module '@japa/runner' { |
11 | interface TestContext { | 11 | interface TestContext { |