UNPKG

776 BTypeScriptView Raw
1declare module '@ioc:Adonis/Lucid/Seeder' {
2 import { QueryClientContract, FileNode } from '@ioc:Adonis/Lucid/Database';
3 /**
4 * Shape of seeder class
5 */
6 export type SeederConstructorContract = {
7 /**
8 * @deprecated
9 */
10 developmentOnly: boolean;
11 environment: string[];
12 new (client: QueryClientContract): {
13 client: QueryClientContract;
14 run(): Promise<void>;
15 };
16 };
17 /**
18 * Shape of file node returned by the run method
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}