import { INativeTagMap , TagType } from './GenericTagTypes' ; import { CommonTagMapper } from './GenericTagMapper' ; export class CaseInsensitiveTagMap extends CommonTagMapper { public constructor ( tagTypes , tagMap ) { const upperCaseMap = { } ; for ( const tag of Object . keys ( tagMap ) ) { upperCaseMap [ tag . toUpperCase ( ) ] = tagMap [ tag ] ; } super ( tagTypes , upperCaseMap ) ; } tag return protected getCommonName ( tag ) { return this . tagMap [ tag . toUpperCase ( ) ] ; } }