import { TPath , TRxLang , TRxLangHandler } from '../types' ; export class ELang { constructor ( name , lang ) { this . name = name ; this . lang = lang ; } name : string ; lang : TRxLang ; parse ( ) { const lang = this . lang . slice ( ) ; const handler = lang . pop ( ) as TRxLangHandler ; const deps = lang as Array < TPath > ; return { name : this . name , deps , handler } ; } } export const EL = ( name , lang ) => new ELang ( name , lang ) ;