1 | declare module '@ioc:Adonis/Lucid/Seeder' {
|
2 | import { QueryClientContract, FileNode } from '@ioc:Adonis/Lucid/Database';
|
3 | |
4 |
|
5 |
|
6 | export type SeederConstructorContract = {
|
7 | |
8 |
|
9 |
|
10 | developmentOnly: boolean;
|
11 | environment: string[];
|
12 | new (client: QueryClientContract): {
|
13 | client: QueryClientContract;
|
14 | run(): Promise<void>;
|
15 | };
|
16 | };
|
17 | |
18 |
|
19 |
|
20 | export type SeederFileNode = {
|
21 | status: 'pending' | 'completed' | 'failed' | 'ignored';
|
22 | error?: any;
|
23 | file: FileNode<unknown>;
|
24 | };
|
25 | const BaseSeeder: SeederConstructorContract;
|
26 | export default BaseSeeder;
|
27 | }
|