BSB Node.js Type Definitions
    Preparing search index...

    Function createBroadcastEvent

    • Helper function to create a broadcast event schema. Broadcast events are fire-and-forget but delivered to ALL listeners, not just the first one. Type-branded to ensure compile-time category validation. v9: Uses BSBType for cross-language support. Type inference via InferBSBType.

      Type Parameters

      Parameters

      • input: TInput

        BSB type schema for input validation

      • Optionaldescription: string

        Optional description

      Returns { input: TInput; description?: string; __brand: "broadcast" }

      Event schema object with type brand