import { IAsyncParser } from '../../../parser' ; import { IRichTextResolverAsync } from '../rich-text-resolver.models' ; export abstract class BaseAsyncRichTextResolver < TInput , TOutput > implements IRichTextResolverAsync < TInput , TOutput > { constructor ( private defaultParser , private parser ? ) { } abstract resolveRichTextAsync ( input ) ; protected getAsyncParser ( ) { if ( this . parser ) { return this . parser ; } return this . defaultParser ; } }