(parser: IObjectParserProp<ExtConfiguration>)
| 266 | } |
| 267 | |
| 268 | function parseConfiguration(parser: IObjectParserProp<ExtConfiguration>): ExtConfiguration { |
| 269 | const configuration: ExtConfiguration = { |
| 270 | title: '', |
| 271 | properties: {} |
| 272 | }; |
| 273 | |
| 274 | parser.prop('title', v => configuration.title = str(v)); |
| 275 | parser.prop('properties').map((item, key) => configuration.properties[key] = parseConfigurationProperty(item)); |
| 276 | |
| 277 | return configuration; |
| 278 | } |
| 279 | |
| 280 | function parseCurationTemplate(parser: IObjectParserProp<CurationTemplate>): CurationTemplate { |
| 281 | const curationTemplate: CurationTemplate = { |
no test coverage detected