import { IParser } from '../../../parser' ; import { IRichTextResolver } from '../rich-text-resolver.models' ; export abstract class BaseRichTextResolver < TInput , TOutput > implements IRichTextResolver < TInput , TOutput > { constructor ( private defaultParser , private parser ? ) { } abstract resolveRichText ( input ) ; protected getParser ( ) { if ( this . parser ) { return this . parser ; } return this . defaultParser ; } }