aboutsummaryrefslogtreecommitdiffstats
path: root/types
diff options
context:
space:
mode:
authorLibravatar MCMXC <16797721+mcmxcdev@users.noreply.github.com>2024-02-10 18:37:40 -0700
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2024-02-13 06:59:44 +0530
commite1c47572a6235fd8fd20af888ac3a11c7ae1369d (patch)
tree2dccff36a441916d7014037cef3f7ce84a790cad /types
parentrefactor: project maintenance (diff)
downloadferdium-server-e1c47572a6235fd8fd20af888ac3a11c7ae1369d.tar.gz
ferdium-server-e1c47572a6235fd8fd20af888ac3a11c7ae1369d.tar.zst
ferdium-server-e1c47572a6235fd8fd20af888ac3a11c7ae1369d.zip
updates
Diffstat (limited to 'types')
-rw-r--r--types/auth.ts34
-rw-r--r--types/drive.ts4
-rw-r--r--types/events.ts4
-rw-r--r--types/tests.ts2
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
8import User from '#app/Models/User' 8import User from '#app/Models/User';
9import { JWTGuardConfig, JWTGuardContract } from '@ioc:Adonis/Addons/Jwt' 9import { JWTGuardConfig, JWTGuardContract } from '@ioc:Adonis/Addons/Jwt';
10 10
11declare module '@ioc:Adonis/Addons/Auth' { 11declare 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
8import { InferDisksFromConfig } from '@adonisjs/core/build/config' 8import { InferDisksFromConfig } from '@adonisjs/core/build/config';
9import driveConfig from '../config/drive.js' 9import driveConfig from '../config/drive.js';
10 10
11declare module '@ioc:Adonis/Core/Drive' { 11declare 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
8import User from '#app/Models/User' 8import User from '#app/Models/User';
9 9
10declare module '@ioc:Adonis/Core/Event' { 10declare 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
8import '@japa/runner' 8import '@japa/runner';
9 9
10declare module '@japa/runner' { 10declare module '@japa/runner' {
11 interface TestContext { 11 interface TestContext {