Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Commit 40d8d54

Browse files
author
Yang Su
committed
Added arrayInstanceOf snippet
1 parent 22e05be commit 40d8d54

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ Snippets are available for both JSX and CJSX ([React CoffeeScript](https://githu
6767
6868
pta→ PropTypes.array
6969
70+
ptai→ PropTypes.array (Instances)
71+
7072
ptb→ PropTypes.bool
7173
7274
pte→ PropTypes.element
@@ -75,16 +77,16 @@ Snippets are available for both JSX and CJSX ([React CoffeeScript](https://githu
7577
7678
pti→ PropTypes.instanceOf
7779
78-
ptn→ PropTypes.node
79-
8080
ptn→ PropTypes.number
8181
82-
pto→ PropTypes.object
82+
ptn→ PropTypes.node
8383
84-
ptof→ PropTypes.objectOf
84+
pto→ PropTypes.object
8585
8686
ptof→ PropTypes.oneOf (Enum)
8787
88+
ptof→ PropTypes.objectOf
89+
8890
ptoft→ PropTypes.oneOfType (Union)
8991
9092
pts→ PropTypes.string
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<snippet>
2+
<content><![CDATA[
3+
${1}: React.PropTypes.array(React.PropTypes.instanceOf(${2:Class}))${3:.isRequired}$0
4+
]]></content>
5+
<tabTrigger>ptai</tabTrigger>
6+
<scope>source.coffee</scope>
7+
<description>React: PropTypes.array (Instances)</description>
8+
</snippet>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<snippet>
2+
<content><![CDATA[
3+
${1}: React.PropTypes.array(React.PropTypes.instanceOf(${2:Class}))${3:.isRequired}$0
4+
]]></content>
5+
<tabTrigger>ptai</tabTrigger>
6+
<scope>source.js</scope>
7+
<description>React: PropTypes.array (Instances)</description>
8+
</snippet>

0 commit comments

Comments
 (0)