MCPcopy Create free account
hub / github.com/ampproject/amphtml / validProps

Function validProps

extensions/amp-mathml/1.0/component.js:75–83  ·  view source on GitHub ↗

* Verify required props and throw error if necessary. * @param {!BentoMathmlDef.Props} props * @return {boolean} true on valid

({formula})

Source from the content-addressed store, hash-verified

73 * @return {boolean} true on valid
74 */
75function validProps({formula}) {
76 // Perform manual checking as assertion is not available for Bento: Issue #32739
77 if (!formula) {
78 console /*OK*/
79 .warn('formula is required for <BentoMathml>');
80 return false;
81 }
82 return true;
83}

Callers 1

BentoMathmlWithRefFunction · 0.85

Calls 1

warnMethod · 0.80

Tested by

no test coverage detected