doc: plugin config comments

This commit is contained in:
Artemy 2024-05-14 14:51:22 +03:00
parent 36207f470f
commit 41dab54df3
2 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,4 @@
import { IAppConfig } from '../types/appConfig';
import { IAppConfig } from '../types/pluginConfig';
import { engineList } from '@txtdot/plugins';
import { compile } from 'html-to-text';

View File

@ -3,6 +3,12 @@ import { Engine } from '@txtdot/sdk';
type Html2TextConverter = (html: string) => string;
export interface IAppConfig {
/**
* List of engines, ordered
*/
engines: Engine[];
/**
* HTML to text converter, if engine doesn't support text
*/
html2text?: Html2TextConverter;
}