Stone.js API
    Preparing search index...
    • Hook decorator to mark a method as a lifecycle hook And automatically add it to the global lifecycle hook registry.

      Type Parameters

      • T extends Function = Function

      Parameters

      • name: HookName

        The name of the lifecycle hook.

      Returns MethodDecorator

      A class decorator function that sets the metadata using the provided options.

      class MyClass {
      // ...
      @Hook('onStart')
      onStart () {}
      }