import { bundle } from 'riduce'

bundle(actions, type?)

Function parameters

actions: array

TypeScript: (Action|BundledAction)[]

An array of Riduce-standard actions (which can themselves be from a previous bundle)

type (optional): string

Custom type property for the resultant bundled action. See Control action types

Return value

A Riduce-standard action with the passed type