import { Validate } from '../../utils/validate' ; export interface IAttributeMapping { textPlural ? : string ; context ? : string ; comment ? : string ; } export interface IHtmlExtractorOptions { attributes ? : IAttributeMapping ; } export function validateOptions ( options ) { Validate . optional . stringProperty ( options , 'options.attributes.textPlural' ) ; Validate . optional . stringProperty ( options , 'options.attributes.context' ) ; Validate . optional . stringProperty ( options , 'options.attributes.comment' ) ; }