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 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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,6 +1116,16 @@
11161116
"body": ["PropTypes.shape({", "\t0ドル", "}).isRequired,"],
11171117
"description": "An object taking on a particular shape required"
11181118
},
1119+
"propTypeExact": {
1120+
"prefix": "ptex",
1121+
"body": ["PropTypes.exact({", "\t0ドル", "}),"],
1122+
"description": "An object with warnings on extra properties"
1123+
},
1124+
"propTypeExactRequired": {
1125+
"prefix": "ptexr",
1126+
"body": ["PropTypes.exact({", "\t0ドル", "}).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)

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