AdonisJS API
    Preparing search index...

    Represents a prepared stub ready for file generation. Contains the rendered content and metadata extracted from the stub template, but has not yet been written to disk.

    const preparedStub: PreparedStub = {
    contents: 'export class User {}',
    destination: '/app/models/user.ts',
    force: false,
    attributes: { to: '/app/models/user.ts' }
    }
    type PreparedStub = {
        contents: string;
        destination: string;
        force: boolean;
        attributes: Record<string, any>;
    }
    Index
    contents: string

    The rendered contents of the stub template

    destination: string

    The absolute path where the file should be written

    force: boolean

    Whether to overwrite existing files

    attributes: Record<string, any>

    Additional metadata exported from the stub template