diff --git a/README.md b/README.md index 7408a12..1b11995 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ Boilerplate free class-based action creator following [flux-standard-action](htt - [Create an action with no payload and meta](#create-an-action-with-no-payload-and-meta) - [Create an error action with no meta](#create-an-error-action-with-no-meta) - [Create an error action with meta](#create-an-error-action-with-meta) + - [Customize action prefix](#customize-action-prefix) @@ -140,3 +141,16 @@ new ActionTest6() // Failure new ActionTest6('test') // Failure new ActionTest6(5, 45) // Failure ``` + +### Customize action prefix + +```ts +import { ActionStandard } from 'flux-action-class' + +abstract class AppBaseAction extends ActionStandard { + protected static readonly _prefix = 'app:' +} + +class ActionTest7 extends AppBaseAction {} +// Creates action with no payload, no meta, type 'app:ActionTest7' and error = false +```