Skip to content

Commit f6af1f4

Browse files
Randagio13Damian Sznajder
authored and
Damian Sznajder
committed
feat: added PropTypes.exact
1 parent 0052868 commit f6af1f4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

snippets/snippets.json

+10
Original file line numberDiff line numberDiff line change
@@ -1116,6 +1116,16 @@
11161116
"body": ["PropTypes.shape({", "\t$0", "}).isRequired,"],
11171117
"description": "An object taking on a particular shape required"
11181118
},
1119+
"propTypeExact": {
1120+
"prefix": "ptex",
1121+
"body": ["PropTypes.exact({", "\t$0", "}),"],
1122+
"description": "An object with warnings on extra properties"
1123+
},
1124+
"propTypeExactRequired": {
1125+
"prefix": "ptexr",
1126+
"body": ["PropTypes.exact({", "\t$0", "}).isRequired,"],
1127+
"description": "An object with warnings on extra properties required"
1128+
},
11191129
"staticPropTpyes": {
11201130
"prefix": "ptypes",
11211131
"body": ["static propTypes = {", "$0", "}", ""]

0 commit comments

Comments
 (0)