MCPcopy
hub / github.com/microsoft/SandDance / parsePropDefinition

Function parsePropDefinition

docs/tests/v2/es6/js/sanddance.js:33259–33268  ·  view source on GitHub ↗
(propDef)

Source from the content-addressed store, hash-verified

33257}
33258
33259function parsePropDefinition(propDef) {
33260 var type = propDef.type;
33261 var typeDefinition = TYPE_DEFINITIONS[type] || {};
33262 var typeValidator = typeDefinition.typeValidator;
33263
33264 if (typeValidator) {// assert(typeValidator(propDef), 'Illegal prop type');
33265 }
33266
33267 return propDef;
33268}
33269
33270function guessNumberType(name, value) {
33271 var isKnownProp = /radius|scale|width|height|pixel|size|miter/i.test(name) && /^((?!scale).)*$/.test(name);

Callers 1

parsePropTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected