Stone.js API
    Preparing search index...
    • Declare a notice imperatively.

      The imperative half of @Notice, and it says exactly the same thing: metadata here, content in the module. Put the result on stone.notifications.notices.

      Parameters

      • module: unknown

        The notice: a class, or an object answering notify.

      • options: { channels?: string[]; name: string; on?: string }

        The notice's metadata.

      • isClass: boolean = true

        Whether module is a class the container should build. Defaults to true.

      Returns NoticeDeclaration

      The declaration.

      blueprint.set('stone.notifications.notices', [
      defineNotice(ConsentNeeded, { name: 'guardianship.consent_needed', on: 'identity.guardian.invited.v1' })
      ])