export type FastTag = ( string | number ) [ ] ; export type FastTagPair = [ FastTag , FastTag ] ; export type LanguageAliasMap = { [ x ] : FastTagPair [ ] ; } ; export const stringToObject = ( raw , d1 , d2 ) : { [ x ] : string ; } => { const o = { } ; for ( const part of raw . split ( d1 ) ) { const [ k , v ] = part . split ( d2 ) ; o [ k ] = v ; } return o ; } ;