File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Extension for Visual Studio Code to add snippets for React in ECMA Script 6.
55![ Extension demo] ( ./images/snippet-demo.gif )
66
77## Usage
8+
89Type the snippet prefix and press enter.
910
1011``` javascript
@@ -21,6 +22,19 @@ u-pts // String PropType
2122u- ptn // Number PropType
2223u- ptb // Bool PropType
2324u- ptf // Func PropType
25+ u- pta // Array PropType
26+ u- pto // Object PropType
27+ u- pty // Symbol PropType
28+ u- pte // Element PropType
29+ u- ptd // Node PropType
30+ u- ptio // Instance Of (PropType)
31+ u- ptof // One Of (PropType)
32+ u- ptoft // One Of Type (PropType)
33+ u- ptao // Array Of (PropType)
34+ u- ptoo // Object Of (PropType)
35+ u- ptsh // Shape (PropType)
36+ u- ptany // Any PropType
37+ u- ptcustom // Custom PropType
2438u- actions // Redux actions
2539u- action // Redux action
2640```
Original file line number Diff line number Diff line change 182182 "description" : " React PropType OneOf"
183183 },
184184 "PropTypes.OneOfType" : {
185- "prefix" : " u-ptof " ,
185+ "prefix" : " u-ptoft " ,
186186 "body" : [
187187 " $1: PropTypes.oneOfType([PropTypes.$2])$3"
188188 ],
253253 ],
254254 "description" : " Redux action"
255255 }
256- }
256+ }
You can’t perform that action at this time.
0 commit comments