export type GeneratorFnOptions = { sequence: number; afterBuild: (fn: HookFn) => any; afterCreate: (fn: AfterCreateFn) => any; onCreate: (fn: OnCreateFn) => any; params: P; associations: Partial; transientParams: Partial; }; export type GeneratorFn = (opts: GeneratorFnOptions) => T; export type HookFn = (object: T) => any; export type OnCreateFn = (object: T) => C | Promise; export type AfterCreateFn = (object: C) => C | Promise; export type BuildOptions = { associations?: Partial; transient?: Partial; };