Options
All
  • Public
  • Public/Protected
  • All
Menu

Action type name maker

Hierarchy

  • ActionTypeMaker

Index

Constructors

constructor

Methods

Static ADD_FIRST

  • ADD_FIRST(prefix: string): string
  • Create an action type with _ADD_FIRST suffix

    Parameters

    • prefix: string

      Main name of an action type

    Returns string

    Full action type name concating with the suffix

    const type = actionTypeMaker.PENDING('FETCH_PROFILE');
    
    console.log(type); // FETCH_PROFILE_ADD_FIRST
    

Static ADD_LAST

  • ADD_LAST(prefix: string): string
  • Create an action type with _ADD_LAST suffix

    Parameters

    • prefix: string

      Main name of an action type

    Returns string

    Full action type name concating with the suffix

    const type = actionTypeMaker.PENDING('FETCH_PROFILE');
    
    console.log(type); // FETCH_PROFILE_ADD_LAST
    

Static CANCEL

  • CANCEL(prefix: string): string
  • Create an action type with _CANCEL suffix

    Parameters

    • prefix: string

      Main name of an action type

    Returns string

    Full action type name concating with the suffix

    const type = actionTypeMaker.PENDING('FETCH_PROFILE');
    
    console.log(type); // FETCH_PROFILE_CANCEL
    

Static FAIL

  • FAIL(prefix: string): string
  • Create an action type with _FAIL suffix

    Parameters

    • prefix: string

      Main name of an action type

    Returns string

    Full action type name concating with the suffix

    const type = actionTypeMaker.PENDING('FETCH_PROFILE');
    
    console.log(type); // FETCH_PROFILE_FAIL
    

Static PENDING

  • PENDING(prefix: string): string
  • Create an action type with _PENDING suffix

    Parameters

    • prefix: string

      Main name of an action type

    Returns string

    Full action type name concating with the suffix

    const type = actionTypeMaker.PENDING('FETCH_PROFILE');
    
    console.log(type); // FETCH_PROFILE_PENDING
    

Static REMOVE

  • REMOVE(prefix: string): string
  • Create an action type with _REMOVE suffix

    Parameters

    • prefix: string

      Main name of an action type

    Returns string

    Full action type name concating with the suffix

    const type = actionTypeMaker.PENDING('FETCH_PROFILE');
    
    console.log(type); // FETCH_PROFILE_REMOVE
    

Static REPLACE

  • REPLACE(prefix: string): string
  • Create an action type with _REPLACE suffix

    Parameters

    • prefix: string

      Main name of an action type

    Returns string

    Full action type name concating with the suffix

    const type = actionTypeMaker.PENDING('FETCH_PROFILE');
    
    console.log(type); // FETCH_PROFILE_REPLACE
    

Static RESET

  • RESET(prefix: string): string
  • Create an action type with _RESET suffix

    Parameters

    • prefix: string

      Main name of an action type

    Returns string

    Full action type name concating with the suffix

    const type = actionTypeMaker.PENDING('FETCH_PROFILE');
    
    console.log(type); // FETCH_PROFILE_RESET
    

Static SUCCESS

  • SUCCESS(prefix: string): string
  • Create an action type with _SUCCESS suffix

    Parameters

    • prefix: string

      Main name of an action type

    Returns string

    Full action type name concating with the suffix

    const type = actionTypeMaker.PENDING('FETCH_PROFILE');
    
    console.log(type); // FETCH_PROFILE_SUCCESS
    

Static UPDATE

  • UPDATE(prefix: string): string
  • Create an action type with _UPDATE suffix

    Parameters

    • prefix: string

      Main name of an action type

    Returns string

    Full action type name concating with the suffix

    const type = actionTypeMaker.PENDING('FETCH_PROFILE');
    
    console.log(type); // FETCH_PROFILE_UPDATE
    

Static createAsyncActionTypes

Legend

  • Function
  • Function with type parameter
  • Type alias
  • Class
  • Constructor
  • Interface
  • Static method

Generated using TypeDoc