@joakimbugge/seeder / SeederCtor
Type Alias: SeederCtor<TResult>
ts
type SeederCtor<TResult> = (...args) => SeederInterface<any, TResult>;Defined in: packages/seeder/src/seeder/runner.ts:17
Constructor type for a class decorated with @Seeder.
Constructor parameters are permitted so seeders can declare dependencies that a DI container injects (see the instantiate option); the default new SeederClass() path simply constructs them with no arguments.
Type Parameters
TResult
TResult = unknown
Parameters
args
...any[]
Returns
SeederInterface<any, TResult>