(name, propDef)
| 88229 | } |
| 88230 | } |
| 88231 | function normalizePropDefinition(name, propDef) { |
| 88232 | if (!("type" in propDef)) { |
| 88233 | if (!("value" in propDef)) return { |
| 88234 | name: name, |
| 88235 | type: "object", |
| 88236 | value: propDef |
| 88237 | }; |
| 88238 | return Object.assign({ |
| 88239 | name: name, |
| 88240 | type: getTypeOf(propDef.value) |
| 88241 | }, propDef); |
| 88242 | } |
| 88243 | return Object.assign({ |
| 88244 | name: name |
| 88245 | }, TYPE_DEFINITIONS[propDef.type], propDef); |
| 88246 | } |
| 88247 | function isArray(value) { |
| 88248 | return Array.isArray(value) || ArrayBuffer.isView(value); |
| 88249 | } |
no test coverage detected