import { Connection } from 'typeorm' ; import { Seeder , Factory } from '../../src/types' ; import { Pet } from '../entities/Pet.entity' ; export default class CreatePets implements Seeder { public async run ( factory , connection ) { await factory ( Pet ) ( ) . create ( ) ; } }