Skip to content

Instantly share code, notes, and snippets.

@mudivili
Created August 22, 2017 10:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mudivili/eae8f9117702cdf104b0c67f542346df to your computer and use it in GitHub Desktop.
Save mudivili/eae8f9117702cdf104b0c67f542346df to your computer and use it in GitHub Desktop.
<snippet>
<content><![CDATA[
export const CREATE_${1:this} = 'CREATE_${1:this}';
export const CREATE_${1:this}_RESPONSE = 'CREATE_${1:this}_RESPONSE';
export const CREATE_${1:this}_ERROR = 'CREATE_${1:this}_ERROR';
export const UPDATE_${1:this} = 'UPDATE_${1:this}';
export const UPDATE_${1:this}_RESPONSE = 'UPDATE_${1:this}_RESPONSE';
export const UPDATE_${1:this}_ERROR = 'UPDATE_${1:this}_ERROR';
export const FETCH_${1:this}S = 'FETCH_${1:this}';
export const FETCH_${1:this}S_RESPONSE = 'FETCH_${1:this}_RESPONSE';
export const FETCH_${1:this}S_ERROR = 'FETCH_${1:this}_ERROR';
export const REMOVE_${1:this} = 'REMOVE_${1:this}';
export const REMOVE_${1:this}_RESPONSE = 'REMOVE_${1:this}_RESPONSE';
export const REMOVE_${1:this}_ERROR = 'REMOVE_${1:this}_ERROR';
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>crud-constants</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment