UNPKG

869 BTypeScriptView Raw
1import { BaseCommand } from '@adonisjs/core/build/standalone';
2/**
3 * Command to make a new Factory
4 */
5export default class MakeFactory extends BaseCommand {
6 static commandName: string;
7 static description: string;
8 /**
9 * Name of the model to be used in the factory
10 */
11 model: string;
12 /**
13 * Import path to the model used in the factory
14 */
15 modelPath: string;
16 exact: boolean;
17 /**
18 * Generate model import path used in the factory
19 */
20 private generateModelImportPath;
21 /**
22 * Path to the factories directory
23 */
24 protected getDestinationPath(): string;
25 /**
26 * Passed down to the stub template
27 */
28 protected templateData(): {
29 model: string;
30 modelImportPath: string;
31 toModelName: () => (model: string, render: any) => any;
32 };
33 run(): Promise<void>;
34}