Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<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
You can’t perform that action at this time.