Function usePrePost

  • usePrePost execute an array of PrePost decorator metadata on a target instance.

    Type Parameters

    • This

    Parameters

    • prepost: PrePost<This>[] | PrePostClass<This>[]

      Array of PrePost decorator metadatas.

    • targetInstance: This

      Current state of the object the PrePost decorators are defined in, that will be passed to the PrePost decorator functions.

    • cursor: Cursor

      Cursor state that will be passed to the PrePost decorator functions.

    Returns void