Skip to main content
Version: 4.5

Interface: EventSubscriber<T>#

core.EventSubscriber

Type parameters#

NameDefault
Tany

Methods#

afterCreate#

OptionalafterCreate(args: EventArgs<T>): Promise<void>

Parameters:#

NameType
argsEventArgs<T>

Returns: Promise<void>

Defined in: packages/core/src/events/EventSubscriber.ts:25


afterDelete#

OptionalafterDelete(args: EventArgs<T>): Promise<void>

Parameters:#

NameType
argsEventArgs<T>

Returns: Promise<void>

Defined in: packages/core/src/events/EventSubscriber.ts:29


afterFlush#

OptionalafterFlush(args: FlushEventArgs): Promise<void>

Parameters:#

NameType
argsFlushEventArgs

Returns: Promise<void>

Defined in: packages/core/src/events/EventSubscriber.ts:32


afterTransactionCommit#

OptionalafterTransactionCommit(args: TransactionEventArgs): Promise<void>

Parameters:#

NameType
argsTransactionEventArgs

Returns: Promise<void>

Defined in: packages/core/src/events/EventSubscriber.ts:37


afterTransactionRollback#

OptionalafterTransactionRollback(args: TransactionEventArgs): Promise<void>

Parameters:#

NameType
argsTransactionEventArgs

Returns: Promise<void>

Defined in: packages/core/src/events/EventSubscriber.ts:39


afterTransactionStart#

OptionalafterTransactionStart(args: TransactionEventArgs): Promise<void>

Parameters:#

NameType
argsTransactionEventArgs

Returns: Promise<void>

Defined in: packages/core/src/events/EventSubscriber.ts:35


afterUpdate#

OptionalafterUpdate(args: EventArgs<T>): Promise<void>

Parameters:#

NameType
argsEventArgs<T>

Returns: Promise<void>

Defined in: packages/core/src/events/EventSubscriber.ts:27


beforeCreate#

OptionalbeforeCreate(args: EventArgs<T>): Promise<void>

Parameters:#

NameType
argsEventArgs<T>

Returns: Promise<void>

Defined in: packages/core/src/events/EventSubscriber.ts:24


beforeDelete#

OptionalbeforeDelete(args: EventArgs<T>): Promise<void>

Parameters:#

NameType
argsEventArgs<T>

Returns: Promise<void>

Defined in: packages/core/src/events/EventSubscriber.ts:28


beforeFlush#

OptionalbeforeFlush(args: FlushEventArgs): Promise<void>

Parameters:#

NameType
argsFlushEventArgs

Returns: Promise<void>

Defined in: packages/core/src/events/EventSubscriber.ts:30


beforeTransactionCommit#

OptionalbeforeTransactionCommit(args: TransactionEventArgs): Promise<void>

Parameters:#

NameType
argsTransactionEventArgs

Returns: Promise<void>

Defined in: packages/core/src/events/EventSubscriber.ts:36


beforeTransactionRollback#

OptionalbeforeTransactionRollback(args: TransactionEventArgs): Promise<void>

Parameters:#

NameType
argsTransactionEventArgs

Returns: Promise<void>

Defined in: packages/core/src/events/EventSubscriber.ts:38


beforeTransactionStart#

OptionalbeforeTransactionStart(args: TransactionEventArgs): Promise<void>

Parameters:#

NameType
argsTransactionEventArgs

Returns: Promise<void>

Defined in: packages/core/src/events/EventSubscriber.ts:34


beforeUpdate#

OptionalbeforeUpdate(args: EventArgs<T>): Promise<void>

Parameters:#

NameType
argsEventArgs<T>

Returns: Promise<void>

Defined in: packages/core/src/events/EventSubscriber.ts:26


getSubscribedEntities#

OptionalgetSubscribedEntities(): EntityName<T>[]

Returns: EntityName<T>[]

Defined in: packages/core/src/events/EventSubscriber.ts:22


onFlush#

OptionalonFlush(args: FlushEventArgs): Promise<void>

Parameters:#

NameType
argsFlushEventArgs

Returns: Promise<void>

Defined in: packages/core/src/events/EventSubscriber.ts:31


onInit#

OptionalonInit(args: EventArgs<T>): void

Parameters:#

NameType
argsEventArgs<T>

Returns: void

Defined in: packages/core/src/events/EventSubscriber.ts:23

Last updated on by Renovate Bot