import { Action } from '@ngrx/store' ; import { Actions } from 'ngrx-domains' ; export class UserActions { static CHANGE_NAME = '[SimpleUser] Change User Name' ; changeName ( name ) { return { type : UserActions . CHANGE_NAME , payload : name } ; } } Actions . simpleUser = new UserActions ( ) ; declare module 'ngrx-domains' { interface Actions { simpleUser : UserActions ; } }