Skip to main content

Actions (core)

Classes

Actions

Public read-only action stream — injected by user services and effects.

Extends Observable so TypeScript prevents calling .next(), .error(), .complete().

import { Actions } from '@hexajs-dev/core';
class Actions extends Observable<HexaAction> { ... }

ActionsSubject

Internal writable action stream — used only by the store's dispatch method. NOT exposed to user code; the generator registers it in the DI container.

import { ActionsSubject } from '@hexajs-dev/core';
class ActionsSubject extends Subject<HexaAction> { ... }

Functions

ofType

RxJS operator that filters actions by one or more action types.

import { ofType } from '@hexajs-dev/core';
function ofType(...allowedTypes: string[]): OperatorFunction<HexaAction, HexaAction>