@epikodelabs/actionstack / FeatureModule
Interface: FeatureModule<State, ActionTypes, Actions, Selectors, Dependencies>
Defined in: types.ts:354
Represents a feature module that organizes state, logic, and dependencies for a specific part of an application.
Type Parameters
State
State = any
The type of the feature state slice.
ActionTypes
ActionTypes extends string = string
The union type of action type strings.
Actions
Actions extends Record<string, (...args) => Action<any>> = any
The shape of action creator functions.
Selectors
Selectors extends Record<string, (state) => any> = any
The shape of selector functions.
Dependencies
Dependencies = any
The type representing dependencies required by the feature.
Properties
slice
readonlyslice:string
Defined in: types.ts:362
A unique identifier string for the feature's state slice in the store.
initialState
readonlyinitialState:State
Defined in: types.ts:363
The initial state value for this feature slice.
dependencies?
readonlyoptionaldependencies:Dependencies
Defined in: types.ts:364
loaded$
readonlyloaded$:Subject<void>
Defined in: types.ts:365
destroyed$
readonlydestroyed$:Subject<void>
Defined in: types.ts:366
data$
readonlydata$:Streams<Selectors>
Defined in: types.ts:367
actions
readonlyactions:Actions
Defined in: types.ts:368
An object containing action creator functions.
selectors
readonlyselectors:Selectors
Defined in: types.ts:369
An object containing selector functions to derive data from the state.
init()
init: (
store) =>FeatureModule<State,ActionTypes,Actions,Selectors,Dependencies>
Defined in: types.ts:370
Parameters
store
Store<any>
Returns
FeatureModule<State, ActionTypes, Actions, Selectors, Dependencies>
configure()
configure: (
store) =>FeatureModule<State,ActionTypes,Actions,Selectors,Dependencies>
Defined in: types.ts:371
Parameters
store
Store<State>
Returns
FeatureModule<State, ActionTypes, Actions, Selectors, Dependencies>
destroy()
destroy: (
clearState?) =>FeatureModule<State,ActionTypes,Actions,Selectors,Dependencies>
Defined in: types.ts:372
Parameters
clearState?
boolean
Returns
FeatureModule<State, ActionTypes, Actions, Selectors, Dependencies>