Interface PrePostOptions

PrePostOptions.

interface PrePostOptions {
    once: boolean;
    primitiveCheck: boolean;
    scope: ExecutionScope;
}

Properties

once: boolean

Removes the decorator from metadata after its function is executed.

primitiveCheck: boolean

Ensures that a relation exists before defining the PrePost decorator.

scope: ExecutionScope

Specifies whether the prepost function should be executed during the read phase, the write phase, or both.