Interface FactoryHooks<T>

Interface typehints the possible hooks and states for factories.

Type Parameters

Hierarchy

  • FactoryHooks

Implemented by

Indexable

[method: string]: CallableFunction | undefined

Properties

afterCreating?: ((modelOrCollection) => void)

Type declaration

    • (modelOrCollection): void
    • The factory hook to be called where the value might be changed.

      Parameters

      Returns void

afterMaking?: ((modelOrCollection) => void)

Type declaration

    • (modelOrCollection): void
    • The factory hook to be called where the value might be changed.

      Parameters

      Returns void

Generated using TypeDoc