Created
February 3, 2017 04:25
-
-
Save AmmarHasan/4148abeb83e8e9fb77d4a1e8c6614ff0 to your computer and use it in GitHub Desktop.
User snippet for typescript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Print to console": { | |
"prefix": "log", | |
"body": [ | |
"console.log('$1');", | |
"$2" | |
], | |
"description": "Log output to console" | |
}, | |
"stage 1": { | |
"prefix": "s1", | |
"body": [ | |
"stage_one('$1')" | |
], | |
"description": "replace s1" | |
}, | |
"stage 2": { | |
"prefix": "s2", | |
"body": [ | |
"stage_two('$1')" | |
], | |
"description": "replace s2" | |
}, | |
"stage 3": { | |
"prefix": "s3", | |
"body": [ | |
"stage_three('$1')" | |
], | |
"description": "replace s3" | |
}, | |
"stage 4": { | |
"prefix": "s4", | |
"body": [ | |
"stage_four('$1')" | |
], | |
"description": "replace s4" | |
}, | |
"stage 5": { | |
"prefix": "s5", | |
"body": [ | |
"stage_five('$1')" | |
], | |
"description": "replace s5" | |
}, | |
"stub for stage 1": { | |
"prefix": "st1", | |
"body": [ | |
"sandbox.stub(stage_one, '$1', () => {\n return $2;\n});\n$3" | |
], | |
"description": "replace stub for s1" | |
}, | |
"stub for stage 2": { | |
"prefix": "st2", | |
"body": [ | |
"sandbox.stub(stage_two, '$1', () => {\n return $2;\n});\n$3" | |
], | |
"description": "replace stub for s2" | |
}, | |
"stub for stage 3": { | |
"prefix": "st3", | |
"body": [ | |
"sandbox.stub(stage_three, '$1', () => {\n return $2;\n});\n$3" | |
], | |
"description": "replace stub for s3" | |
}, | |
"stub for stage 4": { | |
"prefix": "st4", | |
"body": [ | |
"sandbox.stub(stage_four, '$1', () => {\n return $2;\n});\n$3" | |
], | |
"description": "replace stub for s4" | |
}, | |
"stub for stage 5": { | |
"prefix": "st5", | |
"body": [ | |
"sandbox.stub(stage_five, '$1', () => {\n return $2;\n});\n$3" | |
], | |
"description": "replace stub for s5" | |
}, | |
"enums": { | |
"prefix": "ee", | |
"body": [ | |
"enums('$1')" | |
], | |
"description": "replace enums" | |
}, | |
"constants": { | |
"prefix": "cc", | |
"body": [ | |
"constants('$1')" | |
], | |
"description": "replace constants" | |
}, | |
"inputs": { | |
"prefix": "ctt", | |
"body": [ | |
"ctx.inputs['$1'] = $2;$3" | |
], | |
"description": "add input" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment