Stone.js API
    Preparing search index...
    • Class decorator: enable the light key-router (route events by key, not by path).

      The event-routing sibling of @Routing(): it makes the light router the kernel event handler, so any adapter that runs the kernel routes its events, keyed by a configurable property, to the matching handler (bus events, realtime gateways, CLI commands...). Mutually exclusive with @Routing(). Bundlers tree-shake the full router away when only this is used.

      Type Parameters

      • T extends ClassType = ClassType

      Parameters

      Returns ClassDecorator

      A class decorator.

      @KeyRouting({ source: 'detail-type' })
      @AwsLambda()
      @StoneApp({ name: 'consumer' })
      export class Application {}