WS-2019.3 <martin@Martins-iMac-2.local Update React.xml, JavaScript.xml

This commit is contained in:
Martin Donnelly 2019-12-09 12:38:19 +00:00
parent b948948950
commit e64c1f8d04
2 changed files with 11 additions and 0 deletions

View File

@ -15,4 +15,9 @@
<option name="JAVA_SCRIPT" value="true" />
</context>
</template>
<template name="promise" value="return new Promise((resolve, reject) =&gt; {&#10; &#10; &#10;});" description="Create a javascript promise" toReformat="false" toShortenFQNames="true">
<context>
<option name="JAVA_SCRIPT" value="true" />
</context>
</template>
</templateSet>

View File

@ -194,4 +194,10 @@
<template name="pts" value="PropTypes.string," description="String prop type" toReformat="true" toShortenFQNames="true">
<context />
</template>
<template name="pte" value="PropTypes.oneOf(['$END$'])," description="Prop type limited to specific values by treating it as an enum" toReformat="true" toShortenFQNames="true">
<context />
</template>
<template name="pter" value="PropTypes.oneOf(['$END$']).isRequired," description="Prop type limited to specific values by treating it as an enum required" toReformat="true" toShortenFQNames="true">
<context />
</template>
</templateSet>