Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 14e6a77

Browse files
update readme.md
1 parent 0084265 commit 14e6a77

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

‎README.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
89
Type the snippet prefix and press enter.
910

1011
```javascript
@@ -21,6 +22,19 @@ u-pts // String PropType
2122
u-ptn // Number PropType
2223
u-ptb // Bool PropType
2324
u-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
2438
u-actions // Redux actions
2539
u-action // Redux action
2640
```

‎snippets/snippets.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@
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
],
@@ -253,4 +253,4 @@
253253
],
254254
"description": "Redux action"
255255
}
256-
}
256+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /